I would really appreciate some sample code.
If all you want is to count wait after a press, then a simple option is to use delay()
buttonState = digitalRead(buttonpin);
if (buttonState == HIGH)
presses = presses + 1;
wait(1000); // no other key presses read for 1 second
When you're comfortable with delay code, look at the BlinkWithOutDelay example (Arduino menu, File; Examples; 2.Digital) to see how to avoid stopping your whole program for that one second...