A teain contraption block, similar to train controls. That counts the blocks train have travelled, with possibly some extra features.
Features/modes:
Counting blocks forward: counts blocks in forward motion, subtracts in backwards motion. Can be reset.
Counting blocks in module: counts total blocks, even driven backwards. Can be reset.
Going until (user set amount of blocks): moves forward and stops at junction for user to decide which path to take, or alternatively flip a coin on junctions.