Problem #843 DATA STRUCTURES

Write a C++ method to count all the words in a string.

Your Solution