Intelligent flowmeter for natural gas fuel dispensers