UVa 494 - Kindergarten Counting Game

Summary

 * Given a few sentences you are supposed to count the number of words in the sentence.

Explanation

 * This is pretty straight forward just another regular expression problem if you use Java and if you're using C/C++ this involves just parsing strings.

Input
Meep Meep! I tot I taw a putty tat. I did! I did! I did taw a putty tat. Shsssssssssh ... I am hunting wabbits. Heh Heh Heh Heh ... Woot I have hair Look it care1fully. abcd88efgh....... mom's

Output
2 7 10 9 4 4 2 2

Solution
C++ solution: kindergarten counting game