A basic analogy would be holding a bucket below a tap, filling it to a set level, then quickly replacing it with another bucket and timing the rate at which the buckets are filled (or the total number of buckets for the “totalised” flow). With appropriate pressure and temperature compensation, the mass flow rate can be accurately determined.