What is the function of a flow meter in a hydraulic system?