\def(h2cnt 0 0)\ \def-lazy(h2 1 \def(h2cnt 0 \add(\h2cnt 1)) {\(h2cnt). $0})\ \h2({first heading}) \h2({second heading})