Can you be “infertile” even if you can get pregnant.

What I mean to say, is if you can’t seem to carry to term for some reason, whether disease related or unknown reasons. How many miscarriages before you’re deemed “infertile”?