Availability $WBACTSES is available for use with all WBSP commands.
Syntax $WBACTSES $WBACTSES[]
Returns Number of active sessions.
Here's an example:
After running this example, the resulting page in web browser may look like this: