ST_NumInteriorRing — Returns the number of interior rings (holes) of a Polygon. Aias for ST_NumInteriorRings
integer ST_NumInteriorRing(geometry a_polygon);
integer ST_NumInteriorRing(
)
ST_NumInteriorRings, ST_PointN