Count died enemies

Hello,
I’m programming a racing game.
You can wreck your opponents and I want to count the enemies you’ve wrecked.
I do this in this way:

    if(Wrecked){
    Smoke.Emit();
    EngineTorque = 0;
    PlayerCar_Script.EnemyWrecked += 1;
    }

I think you can see my issue. It will not count just 1 up it will count endless …
How can I fix this ? I also tried SendMessage, but it ends up in the same issue :confused:

Add a variable that gets set within your block to mark that the wreck has been accounted for. E.g. (assuming C#)

bool hasBeenAccountedFor = false;

if (Wrecked)
{
  if (!hasBeenAccountedFor) do something
  hasBeenAccountedFor = true;