Wizards are kind of unique among spellcasters. Bards, Sorcerers and Warlocks have a set limit to the number of spells they can know, but they can cast any spell they know as long as they have spell slots available. Clerics and Druids on the other hand have access to every single spell on their spell list, but they must prepare the spells they wish to use that day after completing a long rest.
Wizards on the other hand are kind of half way between these. All of the spells you know are written down in your spellbook, and you must prepare the ones you want to use that day from those you know. You can prepare a number of spells equal to your wizard level + your int modifier. But the best part is that you can copy spells from spell scrolls or other wizards' spellbooks into yours - as long as that spell is on the wizard spell list. It's a long and expensive process, but eventually you can have access to ALL the spells on the wizard's spell list.
So at level 1, your spell book contains 6 first level spells of your choice. Assuming an int of 16 (modifier of +3) at level 1, that will give you a total of 4 spells you can prepare, out of the 6 spells you have written down in your spellbook. At level 3, you will have learnt 4 more spells (not including any additional spells you may have copied into your spellbook), and will now be able to prepare 6 spells.
One last thing, any wizard spell you have in your spellbook has the ritual tag, you can cast it as a ritual which means you don't need to have that spell prepared to cast it, and it doesn't cost you a spell slot. This process takes 10 minutes though, so you can't really cast them in combat, but as most ritual spells are for utility like identify, detect magic, leomund's magic hut, etc, this is usually not an issue.