for counting pulses from rotary phone