Change the way interrupter gets the pulses count