Return the number of connections in the given direction (inbound, outbound, or both).
Declared in <net.h>
<net.h>
size_t GetNodeCount(ConnectionDirection direction) const;
the number of connections matching the given direction.