You can check NumNoops here instead?
nit
I don't think so, NumNoops is a global variable that accumulates its value through the program's lifetime
Ah, of course.
Fix nit.
LGTM
nit