public int CountOfEnemyUnitsWeCanCounter() { int total = 0; foreach (var counterType in iconUnit.CountersTypes()) { int count = player.EnemyUnitsOfType(counterType).Count; total += count; } return(total); }