Most E+H flowmeters have both 4-20mA and pulse outputs.
To get a totalised value, you can both sample the analog value as Tom decribe, or summarize the pulses. Or do both and compare them. And then compare with the totalizer value displayed on the flowmeter.
Then let us know which method was best.