it looks to me this parameter is a number of materials assigned to the geomaterials object. this should be reflected in the documentation line. 

is this parameter used somewhere else in tho code or it can be declared private?  