OnGui not getting called

i was trying to test the built in gui but it will still isn’t getting called

var collected = 1;
var total = 1;
function OnGui ()
	{
		GUI.Box (Rect (0,0,100,50), collected + " of " + total);
		Debug.Log("working");
	}

i already attached it to a game object set said game object’s position to (0, 0, 0) and made sure my camera had a gui layer, and i still cannot figure out why it wont call.

The function is called OnGUI, not OnGui.