How many spells can a magus prepare?
See the Magus table linked above. The player can cast the prepared 0-Level spells an unlimited amount of times and can change the spells that are prepared day by day.
How many spells can a magus cast?
He learns and places 14 spells from the wizard’s spell list into his spellbook as magus spells of their wizard level. He gains two of each of the following wizard spells not on the magus spell list: 0-level, 1st-level, 2nd-level, 3rd-level, 4th-level, 5th-level, and 6th-level.