Semen Analysis - Any Insight?

I am 39 & have suffered a MC a few months back & 2 chem pregnancies.  I went to the OBGYN yesterday & she suggested testing for both myself & my DH.  He's first & not too happy about it & I don't blame him.  He has to go into a clinic and have his semen analyzed.  Has anyone's DH gone thru this?  They are checking for quality of the sperm and low sperm count.  Does anyone know what can be done if these 2 things are an issue? Any insight would help. Thanks!