I forgot to include the % chance; my sincerest apologies. % chance for a counterattack is 40%, and the creature that attacks back is randomly chosen.
To further clarify, if the creature that attacks is under a status effect, like Freeze, Wisdom, or Adrenaline, the attack will be appropriately negated or affected. The same creature may attack multiple times.