For one, your for loop is wrong for(count=0; count >= 6; count++) should be for(count=0; count < 5; ++count // That gives you 0,1,2,3 and 4. So, 5 guesses
For two, you're showing how many guesses (or counts ) were used, not how many are left. For that, you could use cout << "You have " << 4 - count << " tries left. " << endl;
Move the line cout << "**You have guessed the magic number!**" << endl; under the line that says "**Right**", otherwise, it prints it no matter if you're high or low
1) initialize is done first
2) condition is checked. If condition is false... then the loop exits. Otherwise...
3) body is performed
4) iterate is performed
5) go to #2