I mean, you can count the sub-classes yourself. I was going by memory of the PH, alone, I could have been off.

But, it does seem like D&D has always offered more spell-casting choices than non-casting. That surely seems like it could be relevant to the martial/caster gap, and maybe even how to fix it.
(it could also, sadly, explain away the fighter's popularity, as just, fewer alternatives.... like, if half of players wanted to play casters, and half not, then the original Fighting Man would inevitably be the most popular class... and the ratio of martial:caster classes has changed over the editions, as is it a it's lowest ever, now... but it's never offered more non-caster choices than caster.)