pythoncom._GetGatewayCount
int = _GetGatewayCount()
Retrieves the number of gateway objects currently in existance
Comments
This is the number of Python object that implement COM servers which are still alive (ie, serving a client). The only way to reduce this count is to have the process which uses these PythonCOM servers release its references.