ST_NumGeometries(gc)

Returns the number of geometries in the GeometryCollection value gc. If
the argument is NULL or an empty geometry, the return value is NULL.

URL: https://dev.mysql.com/doc/refman/5.7/en/gis-geometrycollection-property-functions.html

