How do I go to new level after collecting a certain amount of items?

Hi i’m making a game where you need to collect 20 coins to win before the time runs out. How do I code so that unity knows i’ve collected 20 coins?`

public float MoveSpeed = 6;
public float RotationSpeed = 50;
public float coins;

public AudioClip[] audioClip;

CharacterController cc;
Animator anim;
void  OnTriggerEnter (  Collider other   ){
	if (other.tag == "coin") {
		coins += 1;
		Destroy(other.gameObject);
		PlaySound(0);
	}
}
void  OnGUI () {
	
	GUI.Label ( new Rect(20, 20, 200, 100), coins + "/20 Coins");
	
}

`
this is my current code on my player, what do i need to add?

thank you!

void Update()
{
if (coins >= 20)
{
Application.LoadLevel(“SomeLevelName”);
}
}

or so you don’t have to worry about it being evaluated every single frame:

void  OnTriggerEnter (  Collider other   ){
    if (other.tag == "coin") {
        coins += 1;
        Destroy(other.gameObject);
        PlaySound(0);
        if(coins >= 20)
        {
            Application.LoadLevel("LevelName");
        }
    }
}