Button pressed "X" amount of times before action

Hey! I need some help with a script. I am using Javascript for this certain script but not sure if it needs to be in C# for it to be possible. If it is please let me know. Anyway I need it so when the user presses Return 5 times it will load the scene below. Thanks!

import UnityEngine.SceneManagement;
#pragma strict

function Start () {

}

function Update () {
if (Input.GetKeyDown (KeyCode.Return))
{
SceneManager.LoadScene(“02”);
}
}

#pragma strict
import UnityEngine.SceneManagement;
var pressCount:int;
function Start () {

}

function Update () {
 if (Input.GetKeyDown (KeyCode.Return)) 
 {
 pressCount+=1;
 if(pressCount==5)
 {
  SceneManager.LoadScene("02"); 
 }
  
 }
  
 }

Both C# and Javascript can be used to get desired effect.Unity Docs says “Note that the API is the same regardless of which language is used, so the choice of language is purely down to preference.”