Added a method to get the number of crystals

from a distribution.