Frank Foster, a saxophonist, composer and arranger who helped shape the sound of the Count Basie Orchestra during its popular heyday in the 1950s and ’60s and later led expressive large and small groups of his own, died on Tuesday at his home in Chesapeake, Va. He was 82.