corrected sample input
correctly counts number of spaces in example input text