It should be incremented when it actually calls the procedure. The if clause below may break out without calling the procedure.