Although, masturbation can lead to ejaculation. This won't have any long-term effect on your sperm quality or the count. But it can affect your sperm count temporarily as every time you ejaculate; you will lose sperm from your body.