count_words
count_words — This is used to count the number of words in a variable/string
Examples:
if $name
equal to "Dealers Will Hear Car Talk at Noon."
{$name}
{$name|count_words}
The above example will output:
Dealers Will Hear Car Talk at Noon.
7