If you plan to apply to UCSC, 4 years of Math is recommended and probably required for any chance at an acceptance.