UVa 494 - Kindergarten Counting Game

494 - Kindergarten Counting Game

 * http://acm.uva.es/p/v4/494.html

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

Output
2 7 10 9 4