function getActorMaterialCount( actor)
Returns the number of materials for an actor.