|wordcount Filter

outputs the number of words in a value.

Number As Markdown

Argument
None

Documentation

Outputs the number of words in a value.

Variable

blurb = 'You are pretty smart!'

Template

{{ blurb|wordcount }}

Result

4

Commentary

If you need it, it is there.

More Number Filters

All Number Filters


Did we get something wrong? Is there a use case for the wordcount filter that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on August 2, 2026