Low power pulse counter and analogue interface for the water meter and flowmeter totalizing for usage and leakage monitoring