Definition: This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.
Input: Passage: The Dano-Hanseatic War from 1426-1435 was an armed trade conflict between the Danish dominated Kalmar Union and the German Hanseatic League led by the Free City of Lubeck. When Danish king Eric opened the Baltic trade routes for Dutch ships and introduced a new toll for all foreign ships passing the resund , six Hanseatic cities declared war, put a naval blockade on Scandinavian harbours and allied with Eric's enemy Henry IV, count of Holstein. Therefore the war was intensively linked with the Dutch-Hanseatic War , the Kalmar War with Holstein and the Swedish revolt . After years of changing fortune in warfare Rostock and Stralsund signed a separate peace agreement in 1430. Lubeck, Hamburg, Wismar and Luneburg, however, continued the war and assisted Holstein to conquer Flensburg in 1431. Thereafter they agreed an armistice in 1432 and started peace negotiations. Meanwhile an anti-Danish revolt broke out in Sweden . In 1434 Eric had to agree an armistice with the Swedes, too. In April 1435 he signed the peace of Vordingborg with the Hanseatic League and Holstein, followed by the peace of Stockholm with Sweden a few months later the same year. The Hanseatic cities were excepted from the Sound Dues but they had to accept Dutch competition in the Baltic trade. The Danish Duchy of Schleswig was ceded to the count of Holstein. Sweden's autonomous rights and privileges were extended. These peace agreements weakened Eric's position dramatically, and in 1439 he got dethroned by Danish, Swedish and Norwegian Privy Councils.
Question: How many years did the peace of Vordingborg 1435 last until Eric was dethroned in 1439?
Answer type: Number
Output:
5.