Similar in approach to the previous uf_charCount function, the following function returns the number of words in a string, assuming a space token as word separator.