/who # on join is the simplest way.

There will always be a slight lag when there are a lot of users because of the amount of data you need to receive.