Spells known are the number of spells your character knows. Spell slots do not come into play when you are learning spells. Spell slots are required when you are casting a spell. The number of spells you can cast in a day depends on the number of spell slots you have with cantrips being an exception.