Added wordcount.cpp

Counts words in text.