# format_token_count

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/_session_stats/format_token_count)

Format a token count into a human-readable short string.

## Signature

```python
format_token_count(
    count: int,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `count` | `int` | Yes | Number of tokens. |

## Returns

`str`

Formatted string like `'12.5K'`, `'1.2M'`, or `'500'`.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/bb27e62ebe44dd6e8104a504b1718ce87acc7ffa/libs/cli/deepagents_cli/_session_stats.py#L101)