Context: Stephen Bathory was born on 27 September 1533 in the castle at Somlyo, also known as Szilagysomlyo . He was the son of Stephen VIII Bathory of the noble Hungarian Bathory family and his wife Catherine Telegdi. He had at least five siblings: two brothers and three sisters. Little is known about his childhood. Around 1549-1550 he briefly visited Italy and probably spent a few months attending lectures at the Padua University. Upon his return, he joined the army of Ferdinand I, Holy Roman Emperor, and took part in his military struggle against the Turks. Some time after 1553 Bathory was captured by the Turks, and after Ferdinand I refused to pay his ransom, joined the opposing side, supporting John II Sigismund Zapolya in his struggle for power in the Eastern Hungarian Kingdom. As Zapolya's supporter, Bathory acted both as a feudal lord, military commander and a diplomat. During one of his trips to Vienna he was put under house arrest for two years. During this time he fell out of favour at Zapolya's court, and his position was largely assumed by another Hungarian noble, Gaspar Bekes. Bathory briefly retired from politics, but he still wielded considerable influence and was seen as a possible successor to Zapolya. After Zapolya's death in 1571, the Transylvanian estates elected Bathory Voivode of Transylvania. Bekes, supported by the Habsburgs, disputed his election, but by 1573 Bathory emerged victorious in the resulting civil war and drove Bekes out of Transylvania. He subsequently attempted to play the Ottomans and the Holy Roman Empire against one another in an attempt to strengthen the Transylvania position.

Question: How many years after being made Voivode of Transylvania did Bathory emerge victorious in the civil war?

Answer:
2