On 10 February 2016, qualifying for the sixth Copa del Rey final in the last eight seasons, Luis Enriques Barcelona broke the clubs record of 28 consecutive games unbeaten in all competitions set by Guardiolas team in the 2010–11 season, with a 1–1 draw with Valencia in the second leg of the 2015–16 Copa del Rey. With a 5–1 win at Rayo Vallecano on 3 March, Barcelonas 35th match unbeaten, the club broke Real Madrids Spanish record of 34 games unbeaten in all competitions from the 1988–1989 season. After Barça reached 39 matches unbeaten, their run ended on 2 April 2016 with a 2–1 defeat to Real Madrid at Camp Nou. On 14 May 2016, Barcelona won their sixth La Liga title in eight seasons. The front three of Messi, Suárez and Neymar finished the season with 131 goals, breaking the record they had set the previous year for most goals by an attacking trio in a single season. On 8 March 2017, Barcelona made the largest comeback in Champions League history in the 2016-17 UEFA Champions League in second Leg, Barcelona 6–1 Paris Saint-Germain (aggregate score 6–5), despite losing the first leg in France by a score of 4–0. On 29 May 2017, former player Ernesto Valverde was named as Luis Enriques successor signing a two-year contract with an option for a further year.
Question: How many wins in a row did it take to beat Real Madrid's record?
Answer: 35