How does a flow meter measure water flow?