Counts the number of words and returns the number to the user.