---
id: "P:cAlgo.API.Collections.IReadonlyList`1.Count"
kind: "property"
type: "T:cAlgo.API.Collections.IReadonlyList`1"
url: "https://help.ctrader.com/ctrader-algo/references/Collections/IReadonlyList/Count/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# IReadonlyList.Count

Member of [IReadonlyList<T>](https://help.ctrader.com/ctrader-algo/references/Collections/IReadonlyList/index.md).

## Count

The total number of elements contained in the collection

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
int Count {get;}
```

Python:

```python
readonlyList.Count: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
Print("Installed cBots: {0}", AlgoRegistry.Robots.Count);
```

Python:

```python
api.Print(f"Installed cBots: {api.AlgoRegistry.Robots.Count}")
```

