You get 1 Point for every 4 EVs you get. They are put in with your stat gain on level up but are spread out, you won't get all of them as soon as you level up. I've tried XD.
But if you beat 50 Patrat you get 12 additional points to attack.
Only way to lose EVs is to give it a Berry that removes them.