Measurement of the amount of matter in an object