You searched for: “arithomanias
arithmomania (s), arithomanias (pl) (nouns)
A compulsive desire to count objects and to make calculations: "He had an arithmomania disorder 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."