This is a first try to build the Blaise Pascal's counting machine.
Knex are made so that the machine count in 8-base from 0 to 83-1=511
With more knex, it would easy to build one longer, one which would allows to do additions, substractions, and even multiply numbers!
The machin which counts
Some interesting sites that one can use to build other machine of the same type: