# length

Source: https://taxilang.org/docs/language/stdlib/length

**Full name:** `taxi.stdlib.length`

## Signature

```taxi
declare extension function length(String):Int
```

## Description

Returns the number of characters in the string.

```taxi
find { message: Message } as {
   charCount: Int = message.body.length()
}
```

## Examples

Returns the character count of a string.

Query:

```taxi
find {
   len: Int = length('Hello')
}
```

Result:

```json
{
  "len": 5
}
```
