C++ Program to Count Words in given Sentence