Counting teeth, and skipping pulses

Can the OP clarify if there are 5 teeth, or if the issue is frequency dividing - I thought it might be a case of counting distinct groups of 5 pulses.

If its a continuous signal you could use a divide-by-5 counter to gate the pulses.