You searched for: “arithomanias
arithmomania (s) (noun), arithomanias (pl)
A compulsive desire to count objects and to make calculations: Mike's cousin had a disorder, known as arithmomania, that resulted in his counting each time when one of his feet touched the ground or sidewalk when he was walking, or as he used the steps in a staircase, etc.