## Compatibility
The whole hunk
from line 2, old and new numbered
/
lines
from line 2
22title: Token counting
33url: https://platform.claude.com/docs/en/build-with-claude/token-counting
44description: Count the tokens in a message before you send it to Claude. Use token counts to manage rate limits and costs, make model routing decisions, and fit prompts to a target length.
5featureMetadata:
6 status: ga
7 zdr:
8 eligibility: eligible
9 note: Excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
10 supportedPlatforms:
11 Claude API: ga
12 Claude Platform on AWS: ga
13 Amazon Bedrock: ga
14 Google Cloud: ga
15 Microsoft Foundry: ga
516---
6
7## Compatibility
8- [ZDR](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention): eligible (excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements))
9- Platforms: Claude API, Claude Platform on AWS, Amazon Bedrock, Google Cloud, Microsoft Foundry
1017
1118Token counting lets you determine the number of tokens in a message before you send it to Claude. This helps you make informed decisions about your prompts and usage. With token counting, you can:
1219