#include <iostream>
#include <cstring>
int main()
{
using namespace std;
const int Size=20;
char word[Size];
int count=0;
cout << "Enter words (to stop,type the word done):/n";
cin >> word;
while (strcmp(word,"done"))
{
++count;
cin >> word;
}
cout << "You entered a total of "<<count<< " words." <<endl;
return 0;
}