count_vertices

Returns the total number of vertices in a simple or complex geometry.  The number of points in a ring does not include a duplicate point that closes the ring.

Parameter 1: any geometry

Returns: the number of vertices in the input geometry. For an area geometry, the sum of the vertex counts for each of its rings will be returned. For a complex geometry, the sum of the vertex counts over each of its components will be returned.