If you have to have classes, which you obviously don't, then three. Or four if you insist on dividing cleric and wizard, which I don't. After that everything else depends on multiclassing, feats, skills, and/or whatever you want to use to distinguish swashbucklers from sword and boarders...