Matthias Wandel, who makes wonderful wooden mechanisms, demonstrates his wooden 3-digit mechanical counter. It’s a terrific way to learn how these common devices work. He has build plans at his website.