> ## 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.

# Subscription Count • Rust AI Agent SDK

> subscription_count: Get subscription count for an event type

# subscription\_count

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

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

Get subscription count for an event type

## Signature

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

## Parameters

<ParamField query="event_type" type="EventType" required={true}>
  No description available.
</ParamField>

### Returns

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