Long-term use of some antibiotics can also affect both sperm quality and quantity. But these effects are usually reversed 3 months after stopping the medicine.