Is there a script call to check the number of members in the party?

I'm working on a set of skills that change based on how many members are currently in your party so I'm looking for something like if number of party members == 1 then do this if number of party members == 2 then do that and so on.
$gameParty.all_members.size?
$gameParty.members().length
@gstv87 this is MV forum, not VXAce 🙂
@Poryg Thanks that worked perfectly

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-script-call-to-check-the-number-of-members-in-the-party.86939/