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

# Callback Count • Rust AI Agent SDK

> callback_count: Get the number of registered callbacks for a display type

# callback\_count

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**display**](../modules/display) module.

Get the number of registered callbacks for a display type

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def callback_count(display_type: DisplayType) -> usize
```

## Parameters

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

### Returns

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

## Uses

* `read`
* `get`
* `unwrap_or`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/display.rs#L575">
  `praisonai/src/display.rs` at line 575
</Card>
