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

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

# TicksHistoryLoadedEventArgs.Count

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

## Count

Gets the number of the ticks.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
ticksHistoryLoadedEventArgs.Count: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    var ticks = MarketData.GetTicks("EURUSD");
    ticks.HistoryLoaded += OnTicksHistoryLoaded;
    ticks.LoadMoreHistoryAsync();
}

private void OnTicksHistoryLoaded(TicksHistoryLoadedEventArgs args)
{
    Print("Loaded {0} more ticks", args.Count);
}
```

Python:

```python
def on_start(self):
    self.ticks = api.MarketData.GetTicks("EURUSD")
    self.ticks.HistoryLoaded += self.on_ticks_history_loaded
    self.ticks.LoadMoreHistoryAsync()

def on_ticks_history_loaded(self, args):
    api.Print(f"Loaded {args.Count} more ticks")
```

