Counts pulses sent to an input of a Raspberry Pi. Transforms the pulses to Watts, assuming each pulse represents one Watt-hour.