Counts every node in the tree — both leaves (literals and variables)
and interior eml nodes. This matches Odrzywolek (2026), Table 4 and
Eq. 5: for log(x) = eml(1, eml(eml(1, x), 1)), eml_K returns 7.
Details
This is a behaviour change from v1, which returned the leaf count
(4 for the same expression). v1 semantics are still available via
eml_leafcount(). See ADR-001-K-counting.md in the spec bundle.
See also
eml_leafcount() for v1's leaf-only count.
Other eml_inspectors:
eml_depth(),
eml_leafcount(),
eml_rpn()
