getMaterialsCount

Returns the number of materials.