---
id: "P:cAlgo.API.ChartRobots.Count"
kind: "property"
type: "T:cAlgo.API.ChartRobots"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Robots/ChartRobots/Count/"
---

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

# ChartRobots.Count

Member of [ChartRobots](https://help.ctrader.com/ctrader-algo/references/Chart/Robots/ChartRobots/index.md).

## Count

Gets the number of all Robots attached to a chart.

Environments: Desktop supported · CLI supported · Cloud not supported.

- Cloud: Always empty: Count is 0, Add returns null, Remove returns false, and the events never fire.

C#:

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

Python:

```python
api.ChartRobots.Count: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
Print("cBots on the chart: {0}", ChartRobots.Count);
```

Python:

```python
api.Print(f"cBots on the chart: {api.ChartRobots.Count}")
```

