benchmark: fix next-tick-depth
A recent change made this benchmark fail by always finishing with 0 iterations. Restore a counter variable.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines