On 15 May, Beckham scored his first goal of the season for the Galaxy from a 30-yard free kick, in a 4-1 victory over Sporting Kansas City. On 9 July, Beckham scored directly from a corner in a 2-1 win over Chicago Fire, repeating a feat he also achieved while playing for Preston North End. After having his best season with the Galaxy to date and finishing second in the league in assists, Beckham finished his fifth MLS season on a high. On 20 November 2011, he joined an elite group of players to have won three league titles in three different countries, when Los Angeles won their third MLS Cup against the Houston Dynamo, winning 1-0 on a goal by captain Landon Donovan, with assists from Beckham and fellow designated player Robbie Keane. Had it been Beckham's final match for the Galaxy, it would have been the third time he has won a league championship in his final match for a club, repeating the feat he accomplished with Manchester United in 2003 and Real Madrid in 2007. Following the 2011 season, in which the Galaxy won their second consecutive Supporters' Shield, having the second most points in MLS history, Beckham's five-year contract with the Galaxy expired on 31 December 2011. Despite being 36, he stated that he did not intend to retire. Beckham was heavily linked with Paris Saint-Germain, but on 18 January 2012, Galaxy announced Beckham had signed a new two-year contract to remain in Los Angeles. In May 2012, Beckham and his victorious teammates were received by President of the United States Barack Obama at the White House. Beckham helped the Galaxy to a fourth-place finish in the MLS Western Conference 2012 regular season with Beckham scoring seven goals and adding nine assists. The Galaxy defeated Vancouver Whitecaps FC, the San Jose Earthquakes, Seattle Sounders FC and then 3-1 over the Houston Dynamo to retain the MLS Cup. He was subbed off in the 89th minute for Marcelo Sarvas and was given a standing ovation at their home venue. Beckham had earlier announced that the 2012 MLS Cup Final would be his final game with the Galaxy despite having another year remaining on his contract.

Answer this question "How many seasons did he have in total?" by extracting the answer from the text above.
his fifth