Arithmomania (from Greek arithmós, "number", and maníā, "compulsion") is a mental disorder that may be seen as an expression of obsessive–compulsive disorder (OCD). Individuals experiencing this disorder have a strong need to count their actions or objects in their surroundings.
For example, individuals with arithmomania may feel compelled to count steps while climbing or descending stairs or to tally the number of letters in words. They often feel compelled to repeat an action a specific number of times to avert a perceived catastrophe. Other examples include counting tiles on floors or ceilings, lines on highways, or touching objects a specific number of times, such as doorknobs or tables.