Hi,
Create your self a second Text UI GameObject in the scene and place it where you want it, make sure its wide enough to fit your number/font size etc.
In your NumberWizard script, add variable, like this;
public Text triesLeft;
Save the script.
Back in Unity, select your NumberWizard GameObject and your script component will now display the triesLeft field, drag your Text UI GameObject from the Hierarchy into this field.
Back in your script you can access this via your triesLeft Text variable via its text property;
triesLeft.text = guessRemaining;
In the above, guessesRemaining would be an int variable holding how many guesses are remaining.
Hope this helps 
See also;
- Forum User Guides : How to apply code formatting within your post