Satan attacks everyone regardless, with everything he can. People have all sorts of horrible thoughts, all the time. If the thoughts haunt you, you know deep inside that the thoughts were wrong.
Wether you need counselling/medicine or not, I wouldn’t know…
What I know is that God loves you regardless
If you feel in distress, remember to ask for his help, he never deceives.
Go to confession, go to mass, refrain from activities that could trigger such thoughts, etc
I think you’ll be just fine.