question: In November the Polish warrior-king Sobieski launched a major campaign on the right bank. Bar, Bratslav and Nemiroff surrendered to the Poles but Rashkov was taken by storm and the garrison slaughtered. Kalnik gave up and took the oath of allegiance to the Polish crown. Polish banners  under Dmitry Vishnevetsky and Stanislav Yablonovsky crushed Cossack and Tartar troops at Zhornishch and Nemiroff, and Polish-Lithuanian troops under Nicholas Senyavskaya and Prince Michael Casimir Radziwill defeated the enemy in the battles at Chyhyryn and Pavoloch. At the Battle of Pavoloch 4,000 Tatars under the Nureddin-Sultan was broken. The Nureddin-Sultan was killed. In autumn 1674 the Sultan organized a campaign against the Zaporozhian Sich, and sent 15,000 select Janissaries came by sea to Crimea. The Turkish government had decided to seize the Sich and destroy all the Zaporozhian Cossacks. By order of the Sultan, Selim Giray and 40,000 Tatars joined the Turkish campaign against Sich. In January 1675 15,000 Janissaries and 40,000 Tatars under Khan Selim Giray approached the Sich without being detected. Tartars surrounded the Sich and Janissaries tried to enter it, but the Zaporozhians repulsed the attack and decisively defeated the Turkish troops. 13,500 Janissaries were killed and the rest fled. The Khan retreated from the Sich back to the steppe.
Answer this question: How many surrendered to the Poles?
answer: 3

question: In late July, Danzig was re-inforced by a Dutch garrison, and a combined Danish and Dutch fleet broke the naval blockage imposed on Danzig by Charles X Gustav. On 28-30 July, a combined Brandenburgian-Swedish army was able to defeat the Polish-Lithuanian army in the Battle of Warsaw, forcing John II Casimir to retreat to Lublin. In August, Alexis' army took Livonian Kokenhausen , laid siege to Riga and Dorpat  and raided Estonia, Ingria and Kexholm. On 4 October, John II Casimir stormed Łęczyca in Greater Poland before heading for Royal Prussia, and on 8 October, Wincenty Korwin Gosiewski with 12,000 to 13,000 Lithuanian and Crimean Tartar cavalry overran a Brandenburgian-Swedish force in the Battle of Prostken in Ducal Prussia. Gosiewski then ravaged Ducal Prussia, burning 13 towns and 250 villages, in a campaign that entered folklore because of the high death toll and the high number of captives deported to the Crimea. On 22 October, Gosiewski was defeated by Swedish forces in the Battle of Filipów and turned to Lithuania. Also on 22 October, besieged Dorpat surrendered to Alexis, while the Russian siege of Swedish-held Riga was lifted. John II Casimir meanwhile took Bromberg  and Konitz in Royal Prussia, and from 15 November 1656 until February 1657 stayed in Danzig, where a Swedish siege had to be lifted due to Dutch intervention, just 55 kilometers away from Charles X Gustav's quarters in Elbing.
Answer this question: How many more towns were burnt down than villages?
answer: 137

question: Meanwhile, in 1274, the former Dali Kingdom was officially reorganized as the Province of Yunnan, with Sayyid Ajjal Shams al-Din Omar as governor. In May 1275, the governor sent a report to the emperor stating that the embassy had not returned; that the Burmese evidently had no intention of submitting; and that war was the only way forward. But the emperor rejected an outright invasion. Just coming off a disastrous Japanese campaign, the emperor was unwilling to commit the central government troops to what he considered a low priority affair. He was now focused on delivering the final blow against the Song; the emperor ordered the Yunnan provincial army to secure the borderlands in order to block the escape path of the Song refugees. He also sanctioned a limited border war if Pagan contested the takeover. As planned, the Yunnan army proceeded to consolidate the borderlands in 1275-76. Elsewhere, the main Mongol armies had captured most of the Song territory by 1276. By 1277, at least one Burmese vassal state named "Gold Teeth"  had submitted to the Mongols. Like in 1272, the Burmese government responded by sending an army to reclaim the rebellious state; but unlike in 1272, the Mongols had posted a sizable garrison there. Though it was ultimately under Mongol command, many of the officers and most of the soldiers of the garrison were Turkic-speaking peoples or people from the further west: Turks from Samarkand, Bukhara, Merv and Nishapur, but also captive soldiers from the Persian Khwarazmid empire, the Kipchaks, and even Bulgars from the lower Volga.
Answer this question: How many years were the borderlands consolidated?
answer:
1