Need help getting total enemy Troop size

Howdy all, I'm trying to work out a piece of scripting that will lower the levels of all enemies in battle (Using Yanfly's Enemy Levels plugin) but having trouble getting the game to give me the total number of enemies in battle. I had been attempting to use the $gameTroop.members().length() script to do so but after doing some googling after it failed to work, I've learned it returns an array instead of a single number. Currently, I'm at a loss and I appreciate any help given.

Context: The game involves controlling a single character and I wanted a script that would lower the levels of the enemies the more enemies that are present at the start of battle, to keep the player from being ganked.
Length is a property, not a function.

$gameTroop.members().length
Ah, syntax, my old enemy. It works perfectly, thank you for your help.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-getting-total-enemy-troop-size.159047/