Return the number of times v appears in the variables.
Because the variables are always unique, this will always return 1 or 0.