Check how many actors are in a party?

What is the script call to check how many actors are in the party?
And how do I store the value in a variable?
Code:
$game_party.all_members.size
Use it in control variable -> script
Thanks!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/check-how-many-actors-are-in-a-party.107599/