function long sub(char s[]){ long i = 0; long count = 0; for(i=0;i { if(s[i] == ' ') { count++; } if(s[i]=='\0') { count++; return count; } }}