Funny you guys are talking about this as I've been wanting to do something similar on my boat. Is there any other gauge options that just tells you total number of gallons burned? Don't necessarily need mpg or gph info.
Something as easy as the below. Bottom of the page.
http://www.futurlec.com/Flow_Sensor.shtml#GASFLOWMETER