Q: This task involves creating questions from a given passage that involve some kind of complex reasoning (including numerical reasoning).
The generated questions must require looking at more than one part of the passage to answer. Try to use a variety of reasoning types in your questions (some of the sample reasoning types are illustrated in the 'positive examples' field) and also have a variety of answer types (spans, numbers, dates). A span is a continuous phrase taken directly from the passage or question. In such questions, the answer spans are recommended to be five words. Questions with answer type "number", are expected to start with "How many". For instance, "How long did an event last?" can be phrased as "How many years did an event last?". To increase diversity, try to create more questions for which the answer will be multiple spans. Please create questions that require AT LEAST 2 arithmetic operations as illustrated in the 'positive examples' field. You are encouraged to try DIFFERENT COMBINATIONS of operations and not just limit to the combinations shown in those examples. The more challenging questions you create, the better it is.
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.
A:
How many countries were involved in the 1582 Truce of Jam Zapolski?