Monitoring connections !!

hi I have configured my ubuntu server as a SOCKS5 server, how can I find out and monitor how many users are currently connected to my server ? and how to monitor them ?

thank you