Count text
count_textCounts characters, words, lines, sentences, and bytes in text. Use for precise numbers, with visible characters reported separately from code points for accents and emoji.
Instructions
Count characters, words, lines, sentences and bytes in a piece of text, exactly. Use this whenever the answer needs to be a precise number, because reading tokens is not the same as counting characters. Reports visible characters separately from code points, which differ for accents and emoji.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to measure. |