How To Count Pulses With Raspberry Pi