Many of the people I know who did grad school went to a different school than their undergrad. So up to four, I'd think. Although, you could really get an AA, a BS, a MS, and a PhD from four separate schools, but getting into a community college doesn't require legacy admissions.