How do spermatogenesis and oogenesis differ in terms of the number of gametes they produce?