// `rnx get count` — total SootSimNode count in the live tree. import { inspectNodeCount } from './core' import { printJson, wantsJson } from './shared' import type { WsBridge } from '../../ws-bridge' export async function runCountSubcommand( bridge: WsBridge, opts: { args: string[] } = { args: [] }, ): Promise { const result = await inspectNodeCount(bridge) if (wantsJson(opts.args)) { printJson(result) return } console.log(` nodes: ${result.nodes}`) }