word_count Modifier

Returns the number of words in a given string.

string: There are probably seven words in this sentence.
{{ string | word_count }}
8
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →