> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_NumGeometries

Returns the number of sub-geometries in a geography object. Returns 1 for single geometries (Point, LineString, Polygon).

## Signatures

```sql theme={"system"}
ST_NumGeometries (A: Geography)
```

## Parameters

<ParamField body="A" type="Geography" required>
  The geography whose sub-geometries are counted.
</ParamField>

## Return type

<ResponseField type="Integer">
  The number of sub-geometries (1 for single geometries).
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_NumGeometries(ST_GeogFromWKT('MULTIPOINT ((0 0), (1 1), (2 2))'));
```

```
3
```
