You were not supposed to understand that without being pointed out by a doctor or mental health professional. So don't worry about it. The impulses, as you describe them, could be stemming from OCD, but we cannot be sure without considering the rest of your behavior pattern.
Here is the diagnostic criteria for OCD.
Aside from recommending you to openly talk about it to your GP (doctors see clinically worse patients) and ask for a possible referral to a psychiatrist, I cannot do anything. It may be OCD, but I am not sure.