#include int main() { char c; int n = 0; while ((c = getchar()) != EOF) if (c == ' ') ++n; printf("Number of spcaes: %d\n", n); return 0; }