 if(*string==' '){   //get previous character   string--;   // If previous character is not a space we increase the count   // Otherwise we dont since we already counted a word   if(*string!=' '){     count++;   }  