I understand re the inclusion of the loop and what should be included in there, I simply didn't include it on the forum. My question is, I do not know using what functions, syntax etc I should use to reset the counter.
EDIT:
What about the use of an if function...
if (pulsecounter > max number)
{
pulsecount = 0;
}
EDIT 2:
I have just tried this, the above does not reset pulse count to 0.