Word Count

Added word count method that counts the number of words in a given
string.