Its 255 per stat, but you can only have 510 total, so you can only max out 2 stats because the total of the two is 510. You can however, spread the EVs between the stats to get a total of 510, you dont have to put 255 EVs in one stat. Also, its smarter to only put 252 EVs in one stat if you want to max it out, because 4 EVs = 1 point boost in that stat and since 255 divided by 4 = 252 with a remander of 3, those 3 extra EVs were wasted.