Definition: This task involves annotating the answer type to a given question that involve some kind of complex reasoning (including numerical reasoning). Note that the questions require looking at more than one part of the passage to answer. There are 3 possible answer types (i) spans, (ii) numbers and (iii) dates. If the answer can be found in the passage, label it as "span". If the answer is a number, label as "number". Similarly, label "date" if you think the answer to the given question is a date.
Input: Passage: Subsequent negotiations led by Jesuit papal legate Antonio Possevino resulted in the 1582 Truce of Jam Zapolski between Russia and the Polish-Lithuanian Commonwealth. This was a humiliation for the Tsar, in part because he requested the truce. Under the agreement Russia would surrender all areas in Livonia it still held and the city of Dorpat to the Polish-Lithuanian Commonwealth, while Polotsk would remain under Commonwealth control. Any captured Swedish territoryspecifically Narvacould be retained by the Russians and Velike Luki would be returned from Batory's control to Russia. Possevino made a half-hearted attempt to get John III's wishes taken into consideration, but this was vetoed by the Tsar, probably in collusion with Batory. The armistice, which fell short of a full peace arrangement, was to last ten years and was renewed twice, in 1591 and 1601. Batory failed in his attempts to pressure Sweden into relinquishing its gains in Livonia, particularly Narva. Following a decision by John, the war with Russia ended when the Tsar concluded the Truce of Plussa with Sweden on 10 August 1583. Russia relinquished most of Ingria but left Narva and Ivangorod under Swedish control. Originally scheduled to last three years, the Russo-Swedish truce was later extended until 1590. During the negotiations, Sweden made vast demands for Russian territory, including Novgorod. Whilst these conditions were probably only for the purposes of negotiation, they may have reflected Swedish aspirations of territory in the region.
Question: How many years did the Russo-Swedish truce last?
Output:
number