Measuring or controlling the flow rate