Measurement of density