Looking at my defense replays, every single time a plane was launched (whether the plane was shot down or survived) would count as a loss. For example, if your attacker has 3 triplanes and launched all 3 of them 3 separate times, the ending replay would show a loss of ~9. The defense log is batter representation of troop composition, though I've discovered visual inaccuracies here as well...