<P> The Melancholy of Haruhi Suzumiya is an anime television series produced by Kyoto Animation and directed by Tatsuya Ishihara, based on the Haruhi Suzumiya series of light novels written by Nagaru Tanigawa and illustrated by Noizi Ito . The series follows a high school boy known only as Kyon who encounters Haruhi Suzumiya, an erratic girl who is unaware that she possesses unconscious abilities that can alter the very universe, and gets dragged into joining her SOS Brigade, also consisting of an alien, a time traveller, and an esper . </P> <P> The first season, consisting of 14 episodes, aired in Japan between April 2 and July 2, 2006, airing in a nonlinear order in its original broadcast . The second season, consisting of 14 new episodes, was aired in chronological order in between re-airings of the first season's episodes, with all 28 episodes aired between April 3 and October 9, 2009 . The series was released in North America by Bandai Entertainment, and was relicensed by Funimation . </P> <P> For the first season's episodes, the opening theme is "Bōken Desho Desho?" (冒険 でしょ でしょ?, It's an Adventure, Right? Right?) by Aya Hirano, and the ending theme is "Hare Hare Yukai" (ハレ晴レ ユカイ, Sunny Sunny Happiness) by Hirano, Minori Chihara and Yuko Goto . For the episode titled "The Adventures of Mikuru Asahina Episode 00", the opening theme is "Koi no Mikuru Densetsu" (恋 の ミクル 伝説, The Mikuru Legend of Love) by Goto . For the second season's episodes, the opening theme is "Super Driver" by Hirano, and the ending theme is "Tomare!" (止 マレ!, Stop!) by Hirano, Chihara and Goto . The television series was followed by an animated film, The Disappearance of Haruhi Suzumiya, released on February 6, 2010 . </P>

How many episodes of the melancholy of haruhi suzumiya are there