Heat can affect your sperm count.
From Mayo Clinic:
To maximize the quality and quantity of your sperm, avoid hot tubs and baths. Spending more than 30 minutes in water 102 F (40 C) or above may lower your sperm count. Saunas and steam rooms may have a similar effect.