> ## 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 (Python)

> Return the number of geometries contained in a multi-geometry.

Return the number of geometries contained in a multi-geometry.

SQL reference: [`ST_NumGeometries`](/reference/wherobots-db/geometry-data/accessors/ST_NumGeometries)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_NumGeometries

ST_NumGeometries(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Multi-geometry column to return for.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Number of geometries contained in a multi-geometry column as an integer column.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.