Task: Question Answering
Input (English): Passage: Vendôme, one of the best French generals, took command and was substantially reinforced; Prince Eugene managed a draw at the Battle of Luzzara but the French recovered most of the territory lost the year before. In October 1703, Victor Amadeus declared war on France; by May 1706, the French held most of Savoy except Turin while victories at Cassano and Calcinato forced the Imperialists into the Trentino valley However, in July 1706 Vendôme and any available forces were sent to reinforce France's northern frontier after the defeat at Ramillies. Reinforced by German auxiliaries, Prince Eugene marched on Turin and the siege was broken by the Battle of Turin on 7 September. Despite a minor French victory at Castiglione, the war in Italy was over; the Convention of Milan in March 1707 confirmed Austria's control of Milan and Mantua, with French troops given free passage back to France for redeployment elsewhere. An attack by forces from Italy on the French base of Toulon was planned for 1707 but was postponed when 10,000 Imperial troops were diverted in June to seize the Spanish Bourbon Kingdom of Naples. The delays contributed to the failure of the siege of Toulon; by the end of 1707, fighting in Italy ceased apart from attempts by Victor Amadeus to recover his trans-Alpine territories of Nice and Savoy. 
Question: How many years passed between Italy's delcaration of war on France and the end of fighting in Italy? 
Answer type: Number 
Output (English): 4.