Which statement describes the density of a substance?
A. Density is the number of particles in a substance.
B. Density is the mass per unit volume of a substance.
C. Density is the comparison of masses of different substances.
D. Density is the volume of air mixed with the particles inside a substance.