ez.no / exponential / documentation / reference / template operators / strings / count_words
$input_string|count_words()
integer revealing the number of words.
This operator counts and returns the number of words (all of them) that are found within the inputted string.
{"Where do you want to publish today?"|count_words}
returns 7.
Comments