electric impulse counter