Counting steps. Counting breaths. Counting words in a sentence—then counting them again.
When counting stops being something you choose and starts feeling like something you have to do, it may be a compulsion and a sign of obsessive-compulsive disorder (OCD).
What is compulsive counting?
Compulsive counting (or arithmomania) is counting that necessary to prevent something bad from happening or make something feel “right.” You might count steps, words, objects, breaths, movements, or how many times you perform an action.
Counting becomes a problem when it no longer feels optional. You may feel like you have to reach a certain number, repeat the count until it feels correct, or start over if you lose track.
Counting may bring a brief sense of relief, safety, or completion. But because that relief does not last, it can reinforce the pattern and make counting feel necessary the next time distress arises.
How is compulsive counting related to OCD?
Compulsive counting can be part of obsessive-compulsive disorder (OCD) when it is performed in response to an intrusive thought, feeling, urge, image, emotion, or sensation (i.e., an obsession). The counting can become a compulsion to prevent something bad from happening, neutralize a thought, reduce anxiety, or make an action feel complete.
Counting compulsions can appear across different OCD themes, but they’re especially common in:
Magical Thinking OCD: Certain numbers may feel safe, dangerous, lucky, or connected to whether something bad happens. You might count to a specific number to try to protect yourself or someone else.
Just Right OCD: The main fear may be that an action feels incomplete or wrong unless it is repeated a certain number of times. You might keep counting until you reach the “right” number or the discomfort goes away.
Counting may provide temporary relief, but it also reinforces the idea that the ritual was necessary. Over time, this can make the urge to count feel harder to resist and keep the OCD cycle going.
What can counting compulsions look like?
Counting compulsions can follow rigid rules. You may feel like you have to:
- Count to a specific number
- Repeat an action a certain number of times
- Keep counting until it feels “right”
- Use only odd or even numbers
- Avoid numbers that feel wrong, unsafe, or unlucky
The counting can focus on almost anything, including:
- Steps
- Breaths or blinks
- Floor or ceiling tiles
- Road signs
- Words in a sentence
- Letters in a word
- Thoughts or actions
Find the right OCD therapist for you
All our therapists are licensed and trained in exposure and response prevention therapy (ERP), the gold standard treatment for OCD.
How is compulsive counting treated?
The gold standard treatment for OCD-related counting compulsions is exposure and response prevention (ERP) therapy, a specialized form of cognitive behavioral therapy (CBT).
ERP helps you face the discomfort, fear, or sense of incompleteness that triggers counting without performing the ritual. That might look like:
- Walking without counting your steps
- Stopping an action before reaching the “right” number
- Leaving a count unfinished after losing track
- Using a number that feels unsafe or wrong
- Letting an intrusive thought pass without counting to neutralize it
Over time, ERP helps you learn that you can tolerate the discomfort of not counting—and that counting is not necessary to prevent harm, feel safe, or make something complete.
ERP is sometimes combined with other approaches, including:
- Medication, particularly selective serotonin reuptake inhibitors (SSRIs)
- Mindfulness-based strategies
- Acceptance and commitment therapy (ACT)
Severe or treatment-resistant OCD may sometimes require higher levels of care, such as intensive outpatient programs (IOPs), partial hospitalization programs (PHPs), residential treatment, or other specialized interventions like transcranial magnetic stimulation (TMS).
Bottom line
Counting is not automatically a problem. But when it feels necessary to prevent harm, reduce anxiety, or make something feel “right,” it can become part of the OCD cycle.
The relief from counting usually does not last, which can make the ritual feel necessary again. ERP can help you resist the urge to count, tolerate the discomfort that follows, and move forward without relying on a specific number or ritual.
