Complex sentence: Shandling wrote 38 episodes of the show, and directed three in the show's final season.
Split into simpler sentences: Shandling wrote 38 episodes of the show. He directed three in the show's final season.