There are tablets that can affect the sperm count but these are usually the powerful drugs which are prescribed to combat a cancer or a serious inflammatory disease. Ibuprofen (which is an aspirin-like drug) and Tylex (which is a mixture of paracetamol and codeine) do not affect sperm in this way. Sometimes ibuprofen can cause bleeding from the bowel in susceptible individuals and codeine can cause constipation, but sexual function is not affected.