i already set it to var viol_cntr = 0;

but when i hit the object it won't add plus 1 instead it directly goes to 9. i don't know why is this happening.