Remove a number of damage counters from Golbat equal to the damage done to the Defending Pokémon (after appyling Weakness and Resistance). If Golbat has fewer damage counters than that, remove all of them.
Flip a coin. If tails, Golbat does 40 damage to itself.