# Word Count

Returns the number of words in a given string.

```yaml
string: There are probably seven words in this sentence.
```

::tabs

::tab antlers
```antlers
{{ string | word_count }}
```
::tab blade
```blade
{{ Statamic::modify($string)->wordCount() }}
```
::

```html
8
```
