Program that counts words in text.