In general, no.
If you're writing the code for all of the users, you could create some sort of "ping" message; then count the number of ping messages you get to get # of users. Unfortunately packets aren't guaranteed to arrive in UDP so the responses might not be accurate.