add getClientCount to net, fix connection lost