This method retrieves the number of mesh primitives.
Returns the number of primitives the mesh contains.