Function GetActorMaterialCount( actor)
Returns the number of materials for an actor.