How does a flow meter measure bidirectional liquid flow?