Count current login user in Userman by script

I would like to count number of active user in Userman by script. I can get number of sessions by

[/tool user-manager session find where active]

But I can’t get number of A Users as shown in below image, anyone can help me?

[/tool user-manager session print count-only where active]

Thanks boen_robot.

But your script will count session same as my code and it not work for me.

I did set 1 user can login more than 1 account then the session count will more than user count.

then if user name “par” log on for 2 accounts I can count sessions = 2 but user can count = 1.