How can I control my sex drive/libido?

So I am 22 years and i have noticed that i have a high sex drive.. i can plan not to have sex with someone but the moment the environment is right i jump into it..

I have fun,but then I feel so stupid later..

Someone please guide me on how i can go about this?