PostGIS  2.5.0dev-r@@SVN_REVISION@@
PG_FUNCTION_INFO_V1 ( LWGEOM_numinteriorrings_polygon  )

NumInteriorRings(GEOMETRY) defined for Polygon and and CurvePolygon.

Returns
the number of its interior rings (holes). NULL if not a polygon.