What’s the magic number of schools to apply to?

Our journey several years ago came down to visiting 12 (we are in NE) and applying to 7. An admission officer where DD attends (Deerfield) and the OP’s daughter is applying, had said during our interview that she felt the magic number was 6. Further, they should be of varying acceptance rates in cases where financial aid was important.