How to stop a counter on trigger

Hello I have a counter that continues to count on trigger but I’m trying to get it to stop when the object hits a player but I don’t know where to go from here

public static int Counter;

void OnTriggerEnter2D(Collider2D col)
{
    if (col.gameobject.name == “Destroyer”)
    {
        Counter++;
        Destroy(this.gameObject);
    }

    if (col.gameObject.tag == “Player”)
    {
     
    }

}

public static int Counter;

 private bool hasPlayerBeenHit = false;

 void OnTriggerEnter2D(Collider2D col)
 {
     if (col.gameobject.name == “Destroyer”)
     {
	if(!hasPlayerBeenHit)
         	Counter++;
         Destroy(this.gameObject);
     }
     if (col.gameObject.tag == “Player”)
     {
      hasPlayerBeenHit = true;
     }
 }