> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Event Count • Rust AI Agent SDK

> event_count: Get event count

# event\_count

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**StreamCollector**](../classes/StreamCollector) class in the [**streaming**](../modules/streaming) module.

Get event count

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def event_count(&self) -> usize
```

### Returns

<ResponseField name="Returns" type="usize">
  The result of the operation.
</ResponseField>
