We use flow meters at work witch tell you how much water in whatever metric you want but I am not aware of any that shut itself off and if you do I'm sure it's not cheap, but maybe if you can find out how much your water output is per minute you can put a water pump on a timer.