I am not sure which type of OCD you are suffering from as your thoughts are changing. As you are counting things so it can be counting OCD.
Counting Numbers OCD: Symptoms and Treatment | NOCD
Counting & Checking | Peace of Mind Foundation, Inc
I feel you should visit an OCD therapist they will better understand your thoughts and which type of OCD is it.