C program to count the number of spaces in a string, used to test ASCII code values