Moritz Klein's work, but with buffering between (some) stages. Needs a 4040 binary counter.
alt
click/enter