Resetting a pulsecount

regarding doing the actual value reset though, any ideas on how to do this?

pulsecount = 0;

The pulsecount variable should be volatile, by the way.

Where is your loop() function?