> ## 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.

# GeoDataFrame.count_geometries

> Return a Series of dtype('int') with the number of geometries in each multi-geometry or geometry collection.

Return a `Series` of `dtype('int')` with the number of
geometries in each multi-geometry or geometry collection.

For non-multi geometries, returns 1.

## Signature

```python theme={"system"}
count_geometries()
```

## Returns

<ResponseField name="return" type="Series(int)" />

## Examples

```python theme={"system"}
>>> from sedona.spark.geopandas import GeoSeries
>>> from shapely.geometry import Point, MultiPoint, MultiLineString
>>> s = GeoSeries(
...     [
...         Point(0, 0),
...         MultiPoint([(0, 0), (1, 1)]),
...         MultiLineString([[(0, 0), (1, 1)], [(2, 2), (3, 3)]]),
...     ]
... )
>>> s.count_geometries()
0    1
1    2
2    2
dtype: int32
```


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