That's now how 5e works, unless you're confusing Spells Known versus Spells Prepared.

Int doesn't affect spells known at all, but it does impact spells Prepared. Is that what you meant?