n_words function

Return the number of words in a string