Returns the number of words in the text text.
Example 2.13. countWords() function
<h1>{$title}</h1> <p>{$body}</p> <span class="small">Total words: {countWords($body)}</span>