thanks for the query.
Actually, the semen count is not the only factor that determines fertility.
At low semen count, sometimes, sperm quality and function is also compromised, which might be a cause of miscarriage
. Of course, you should have got your wife also thorougly evaluated for any cause of miscarriage.
Please consult an Andrologist for exact cause of decreased sperm count
Do not take medicines on your own.
WIth a count of 10 million, I would recommend IUI ( intra uterine insemination ) in your case, for which you need to consult an Infertility