I'd suggest getNumConnections(bool inbound)