Calculates the number of layers contained in the CompoundStructure.
Number of layers contained in the CompoundStructure.