If you need to count higher than the capacity of an I32, the shift register is the way to go since it can utilize other data types, e.g. DBL can reliably count quite a bit higher (52 bit mantissa). You could even utilise arbitrary precision arithmetic by representing the counter as an array of numbers. (see e.g. the
factorials challenge (
Results) which required integers with tens of thousands of exact digits).
Attached is an image that uses a DBL for the loop counters. There is also a way to reset the counter via a latched boolean button.
The quotient&reminder is in the numeric palette (near the upper right corner.
Wiret the loop count to x, a constant n to y and the "remainder" terminal to a case structure. The default case should be empty and the case "0" should contain the code that should execute every n'th iteration.