You forgot to specify that the range is limited to integers, so using real numbers (integers plus fractions), the answers is an infinite number of occurances.
Sorry, I had to be a stickler on this one.
Okay, Yankee. Restrict to non-negative integers. Exclude imaginery, irrational, transcendental, various and sundry numbers as well as deuteronomy.
Sorry Andrew, but where I am from to call someone a Yankee is an insult of quite some magnitude.
I'm afraid I will have to challenge you to a duel.....water pistols at 10 paces.