# $field->words()

Returns the number of words in the text

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/methods.php#L348>

****

```php
$field->words(): int
```

## Return type

`int`

This method modifies the existing `$field` object it is applied to and returns it again.


## Examples

```php
<?= $page->text()->kirbytext() ?>

<dl class="text-stats">

  <dt>Characters</dt>
  <dd><?= $page->text()->length() ?></dd>

  <dt>Words</dt>
  <dd><?= $page->text()->words() ?></dd>

</dl>
```