A method for measuring counting rates or measured variables dependent on the counting rates for determining a density profile of at least two substances with different densities arranged within a container by using a plurality of detectors, the method comprising, in each case:
- emitting respective gamma rays with a discrete isotope gamma energy into at least one of the substances by using a plurality of radiation sources, wherein a Compton energy value is less than the isotope gamma energy,
- recording the respective gamma rays which have penetrated at least partially through at least one of the substances by using the plurality of detectors, and
- generating a respective counting rate or a respective measured variable dependent on the counting rate only on the basis of respectively recorded gamma rays of which the respective gamma energy is greater than or equal to an energy threshold value, the energy threshold value being a minimum of 0.5 times the Compton energy value of a Compton gap of the gamma rays.