if else statement doesnt work

Hello, my endGame function doesn’t work properly,
if(myCounter > 3){ chooses the wrong level to load.
Does anyone know why that is the case?

var myCounter : float;

function Update () {
    Debug.Log (myCounter);
}


function Start () {
	endGame ();
}


function OnTriggerEnter ( other : Collider) {
    myCounter += 1.0;
}

function endGame (){    
    yield WaitForSeconds (15); 
   	if(myCounter > 3){        	
   	    Application.LoadLevel ("Level_01");
    } else  {
   	    Application.LoadLevel ("GameOverScreen");
    }
}

Your myCounter variable probably does not have the value you anticipate. Debug it in monobehaviour and see what is going on.