mass divided by volume, as usual. Since you can use any volume or mass you can use the unit cell volume and count the mass of all atoms withing the unit cell. Any cystallographic program (like PowderCell) is doing this for normalization of the XRD intensity. But maybe you mean something else?