Since you are getting the participants right after you’‘ve joined the room it’‘s possible that Smack hasn’'t received that information from the server yet.
You can open a debugger to see if and when you are receiving the room participants from the server.
Try opening the window debugger to find out if you are actually receiving the participants from the server. You should receive at least one presence (from you) if no one is in the room at that moment.
Once you have received the participants’’ presences try again with the #getParticipants() and #getParticipantCount() messages.