These devices measure volume flow rate by using the space of fixed volume formed between a rotor, piston or other such moving part and its case as a measuring container, that is by continuously filling it up and emptying it again and counting the times this is done.
This type of device is called a positive displacement flowmeter