Louis A. Szekely (born September 12, 1967), better known by his stage name Louis C.K. (), is an American stand-up comedian, writer, actor, and filmmaker. He is known for his use of observational, self-deprecating, dark, and shock humor. In 2012, C.K. won a Peabody Award and has received six Primetime Emmy Awards, as well as numerous awards for The Chris Rock Show, Louie, and his stand-up specials Live at the Beacon Theater (2011) and Oh My God (2013). He has won the Grammy Award for Best Comedy Album twice.

In August 2005, C.K. starred in a half-hour HBO special as part of the stand-up series One Night Stand. Inspired by the work ethic of fellow comedian George Carlin, who had committed to dropping all of his existing material and starting over every year, In June 2006, C.K. starred in and wrote Lucky Louie, a sitcom he created. The series premiered on HBO and was videotaped in front of a studio audience; it was HBO's first series in that format. Lucky Louie is described as a bluntly realistic portrayal of family life. HBO canceled the series after its first season. He appeared in three films in 2008: Welcome Home Roscoe Jenkins, Diminished Capacity, and Role Models. C.K. launched his first hour-long special, Shameless, in 2007, which aired on HBO and was later released on DVD. In March 2008, he recorded a second hour-long special, Chewed Up, which premiered on Showtime Network on October 4, 2008, and was nominated for a Primetime Emmy Award for Outstanding Writing for a Comedy or Variety Special.  C.K. and his wife Alix Bailey divorced in 2008, with C.K. and Bailey sharing joint custody of their children. In a 2010 interview, C.K. talked about how, after his divorce, he thought, "well, there goes my act." He alluded to the way that his marriage had been central to his act and his life, and he said that it took him approximately a year to realize "I'm accumulating stories here that are worth telling." One element in his preparation for stand-up was training at the same boxing gym as Lowell, Massachusetts fighter Micky Ward, trying to "learn how to ... do the grunt work and the boring, constant training so that you'll be fit enough to take the beating."  On April 18, 2009, C.K. recorded a concert film titled Hilarious. Unlike his previous specials--which had all been produced for television networks--Hilarious was produced independently, directed by C.K. himself, and sold to Epix and Comedy Central after it was complete. As a result, it was not released until late 2010. It was published on DVD and CD in 2011. It is the first stand-up comedy film accepted into the Sundance Film Festival. From 2009 to 2012, C.K. played Dave Sanderson, a police officer and ex-boyfriend of Leslie Knope (played by Amy Poehler) in the sitcom Parks and Recreation. He also co-starred in the romantic comedy fantasy film The Invention of Lying, directed by and starring Ricky Gervais, in 2009.

Using a quote from the above article, answer the following question: How many seasons did he write and star in?
HBO canceled the series after its first season.