number of enemies in variable

how can i put the number of enemies into a variable? and would that work in this skill notetag for yanfly targeting manager


<targets: x random foes>


edit: scratch the first question. i put it in troop page. just need to know how to reduce it when an enemy dies
alive_members shows how many living enemies or allies are in a troop/party


can't help you with the plugin though

Original thread: https://forums.rpgmakerweb.com/threads/number-of-enemies-in-variable.66446/