How to display data in an array

Hi,

In my games, i have a hint button. Mean that players can have only 3 hints. What i want to ask is how can i tell the player how much hints left for them to use?

 GUI.Button(Rect((Screen.width/2)+320, (Screen.height/2)+280, 100, 50),"Hint3");
 GUI.Button(Rect((Screen.width/2)+320, (Screen.height/2)+280, 100, 50),"Hint2");
 GUI.Button(Rect((Screen.width/2)+320, (Screen.height/2)+280, 100, 50),"Hint1");

private var hintList		: Array = new Array();

so when the player click hint, i will need to push one of the hints from the list to the player. HOw can i go about doing it??

just an example :

private var hintList : Array = new Array();
private var hintsRemaining : int = 3;
private var hintGiven ;
private var showingHint : boolean = false;

function Start () {
	hintList[3] = "wash your feet";
	hintList[2] = "buy some milk";
	hintList[1] = "feed the cat";
	hintList[0] = "get some sleep";
}

function Update () {
	// 
}

function showHint () {
	showingHint = true;
	yield WaitForSeconds (1);
	showingHint = false;
}

// OnGUI
function OnGUI () {
	if ((hintsRemaining > 0)&&(!showingHint)) {
		if (GUI.Button(Rect(10, 10, 100, 50), "Hint " + hintsRemaining)) {
			hintGiven = hintList[hintsRemaining]; 
			print ("hintsRemaining "+hintsRemaining+" : " + hintList[hintsRemaining]+" : hintGiven " + hintGiven);
			showHint();
			hintsRemaining -= 1;
		}
	}
	
	if (showingHint) {GUI.TextArea(Rect(120, 10, 150, 35), "" + hintGiven);}
	
	
	// reset button
	if ((hintsRemaining <= 0)&&(!showingHint)) {
		if (GUI.Button(Rect(10, 75, 100, 50), "Start Again")) {
			hintsRemaining = 3;
		}
	}
}