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

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

# AlgoInstanceParameters.Count

Member of [AlgoInstanceParameters](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/AlgoInstanceParameters/index.md).

## Count

Gets the number of parameters.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
algoInstanceParameters.Count: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
var indicator = Chart.Indicators.Add("Simple Moving Average");
Print("Number of parameters: {0}", indicator.Parameters.Count);
```

Python:

```python
indicator = api.Chart.Indicators.Add("Simple Moving Average")
api.Print(f"Number of parameters: {indicator.Parameters.Count}")
```

