A loop logbook tracks memory boxes lap by lap. The lines under a repeat run once every lap, until a stop line ends the loop. A repeat can count its laps with a box (repeat steps times), and a loop that runs one lap too few or too many has an off by one bug.