Counting teeth, and skipping pulses

I want it to see 4.

Can you explain more precisely why you want to see 4 instead of 5?