You could put a std::cout statement inside the loop to see what is happening for each iteration.
Failing that, you could check what happens by writing down the values of the variables (with pen & paper) for each iteration.
Although the best idea is to learn how to use a debugger. If you are using an IDE, it should have one built in, if not it is a little harder but not impossible to use the command line version.
Hope all is well :+)
Edit: Please always use code tags - use the <> button on the format menu
1 2 3 4 5 6 7 8 9
unsignedint count = 1;
unsignedint number = 1;
unsignedint limit = 4;
do
{
number +=2;
count ++;
} while(count < limit);
std::cout << number << "," << count << "\n";