Create program that counts number of spaces in input stream and prints input to screen

This program counts the number of whitespace characters entered in the input stream and prints the input stream to the screen