la manía

feminine noun

mania, obsession, habit

"Tengo la manía de contar los semáforos."

I have the habit of counting traffic lights.