I want to get how many time my scene is load?

I m implementing a scoring system and I want the when player collided with an obstacle then I want the deduct my score(10) every time when colliding with an obstacle.

because when player collided with obstacle then I want to deduct(10) the score

ex:
Level1:100
100-10=90
90-10=80

Level2:80
100-10=90

Level3:170

int deductscore=10;
    IEnumerator gameover() 
    {
        yield return new WaitForSeconds(1.5f);

        string currentScenes = SceneManager.GetActiveScene().name;

        SceneManager.LoadScene(currentScenes.ToString(), LoadSceneMode.Single);
        //Debug.Log("currentscene1:" + LoadSceneMode.Single);

    }
    //player collide with obstacle 
    void OnTriggerEnter2D(Collider2D other)
    {
       if (child.tag == "obstacleobject" )
       {
               StartCoroutine(gameover());
       }
   }

I already implement a scoring system but I don’t know how to deduct the score??

I would put the yield line at the end of the gameover coroutine, instead of at the beginning where it is now.

I would have a score variable declated somewhere:

int score = 100;

then in the onTriggerEnter2D’s if code block:

score = score - deductscore;
if (score <= 0)
StartCoroutine(gameover());