ST_NumInteriorRing — Return the number of interior rings of the first polygon in the geometry. Synonym to ST_NumInteriorRings.
integer ST_NumInteriorRing(geometry a_polygon);
integer ST_NumInteriorRing(
)
ST_NumInteriorRings