Add instruction counting to the register machine.