guitext count up when collide

what am i doing wrong here? what im trying to do is when this object collides with the object with the tag gold, the goldcouter counts +1

var goldtext : GUIText;

var goldcounter : int = 0;

function OnCollisionEnter (geraakt : Collision) {
	
	if (geraakt.gameObject.tag == "gold") goldcounter++;
	var goldtext = guiText.text ;
	guiText.text = "Gold: " + goldcounter;

}

there is nothing happening just says the stock GUI text on the screen.

keep in mind that im new to javascript

Try this:

function OnCollisionEnter (geraakt : Collision) {

	if(geraakt.collider.gameObject.tag == "gold"){
		goldcounter++;
	}

	goldText.text = "Gold: " + goldcounter;

}