what kind of doctor to go to to test if you’re fertile?

And what do they do to test you?

I’m not trying to have a baby; I’m just worried about my ability for future children because of a past std