Move getNumNodes to RpcManager