added API function to get online friend count

This can be easily done in the client, but I think it's a good idea to have any useful information about the messenger instance be an API call.