SocketUsage() collects the number of sockets in use for a given type.