MV Referencing Number of Battlers (allies + enemies)

Ok, so I'm trying to make some modifications to a turn order display. In order to get the correct x offset, I need some code to count how many battlers are currently alive in a battle. I imagine it would be the .length of "something". I just don't know what that "something" is.
Code:
$gameTroop.aliveMembers().length + $gameParty.aliveMembers().length
Probably ...
Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/referencing-number-of-battlers-allies-enemies.132351/