Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
About your EVing, perhaps you are not using all the EVs, for example 252 Atk / 252 Def / 4 Spe, that would mean you have used 508 EVs, not 510, that could be the reason.
well i'll be interested to see this counter! VM/PM me for a battle if you get it done! if you want me to EV train or RNG it i could do that for your especially lazy