getNumGeometries method
Returns the number of {@link Geometry}s in a {@link GeometryCollection} (or 1, if the geometry is not a collection).
@return the number of geometries contained in this geometry
Implementation
int getNumGeometries() {
return 1;
}