Welcome to the forum.
How have you got your Arduino wired, especially you RESET switch, do you have pull_up or pull_down resistors?
How long are the wires from the switch to the Arduino?
Do you have bypass caps on the supply lines and the switch wiires?
What are you counting and how/what are you using as a sensor/switch?
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Including how you are powering the Arduino?
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Sorry for all the questions, but not knowing your project and so many small things that can be left out in a project, we need to ask.