conting higer than 35k whit uno

hello, this is my first post in this forum, for the first my english ist great so there will be a bit of spelling errors… :o
but back on topic:
i have a bit unjusual projekt where im looking to where out a cherry keyboard switsh and count how manny clicks it can take, i think its rated to about 100milijon clicks

the code ive used is the standard state detection witch f***s upp around 35k (the machine ive bulit for the tests clicks that in about 10min)

someone said that you can program it like a conting wheel, to nine then its flips the next wheel to one and goes back to zero and we have a ten… (dont know what its called but hope you understand what i mean…)

or just tip on what can count that high that i can use insted of and uno (not the right part of the fourum for that question but anyway)

dont relly have any experience whith programing but tying to learn. not to unfamiliar whith the elektroniks part :slight_smile:

(deleted)

the code ive used is the standard state detection witch f***s upp around 35k

Most simple code would f*** up much lower than that, around 32.767K