A sentence is constructed from a string containing all the words in a sentence, such as "The earth is flat." or "How are you today?"
You should remove the punctuation mark from the last word.
You can assume that words are separated by a single space, and that there is a punctuation mark at the end of the sentence.
Implement the constructor and the methods getWord and getCount.