The club had not gained a major trophy since the 2005 FA Cup until 17 May 2014 when, spearheaded by then club-record acquisition Mesut Özil, Arsenal beat Hull City A.F.C. in the 2014 FA Cup Final, coming back from a 2-0 deficit to win the match 3-2. A year later, Arsenal appeared in the FA Cup final for the second time in a row, defeating Aston Villa F.C. 4-0 in the 2015 FA Cup Final and becoming the most successful club in the tournaments history with 12 titles, a record which Manchester United would tie the following season. Arsenal later won the 2016-17 FA Cup for a record 13th time, defeating Chelsea 2-1 in the 2017 FA Cup Final and once more becoming the outright leader in terms of FA Cups won. The victory also saw Wenger become the first manager in English football history to win seven FA Cups. However, in that same season, Arsenal finished in the fifth position in the league, the first time they had finished outside the top four since before Wenger arrived in 1996. After another unspectacular league season the following year, Wenger announced his departure from the club on 20 April 2018, after 22 years as manager. His decision was met by responses of praise throughout English and world football from many pundits and former players, who also thanked him for developing them as people. His final home match in charge was a 5-0 win over Burnley where his entrance was met to a standing ovation by supporters. The final match under the Wenger era was a 1-0 away victory against Huddersfield.
Question: After how many consecutive bad years did Wenger step down as manager?
Answer: 2