For reasons of security, Skylink is designed to not allow this without actually joining the room.
However, you may wish to consider joining the room with audio and video set to false and then use the function getPeersInRoom to count the connected peers in the room.