MZ Number of enemies in damage formula?

Is there a way to include it, something along the lines of:

a.atk + EnemyCount*10 - b.def
Maybe try $gameTroop.Members().length()

or maybe using a battle common event to set a variable of the troop size and calling that variable in the damage formula?

Control Variable ID X = $gameTroop.aliveMembers().length()
And use v[x] in the damage formula?
a.atk + $gameTroop.aliveMembers().length * 10 - b.def

Original thread: https://forums.rpgmakerweb.com/threads/number-of-enemies-in-damage-formula.151942/