Use the ICISite interface GetConnectedCount method to retrieve the number of clients currently connected to the server through any protocol engine.
Signature:
HRESULT GetConnectedCount([out, retval] long* prop);