I go to one of the UC med schools. Our Dept. of Medicine counseled us to apply to 10-12 prelim programs. I guess it depends on where you want to match and how many prelim spots they have. For example, if you really want to match at an academic program, you will probably need to apply to more programs as they tend to have fewer slots.