Measuring flow rate of a milking machine

I would place load cells under the bucket and weight the amount of milk. (1)

or you could measure the weight of the cow (goat) as it should become lighter. (2)

Think (1) is the better of the 2.