AP classes for the IVIES

Hi, I was wondering about the number of APs a student who wishes to go to the Ivy League or a top school like MIT or Caltech. I am a sophomore and also have IB track classes so my schedule isn’t flexible, but what do think would be a good number for AP classes. Also, I will attempt to take a few AP exams based on my IB classes, so how many AP classes do you believe would be a good number?