Total node count.
static int count<T>(List<TreeNode<T>> roots) { var n = 0; walk<T>(roots, (_, __) => n++); return n; }