int initCount = 1;
string initWord;
char responce;
bool Done = false;
while(Done != true)
{
node *pNewNode = new node;
cin >> initWord;
node->word = initWord;
node->count = initCount;
node->link = null;
// assuming you append it to the end of the list...
do
{
cout << "Would you like to do another one?" << endl;
cin >> response;
}while(cin.fail())
if(response == 'n')
{
Done = true;
}
initCount++;
}
A space would cause a problem if you didn't check the first cin like the second one.