Battery powered rate and total flowmeter