Q: This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.
Passage: The War of the Spanish Succession was a European conflict of the early 18th century, triggered by the death of the childless Charles II of Spain in November 1700. His closest heirs were members of the Austrian Habsburg and French Bourbon families; acquisition of an undivided Spanish Empire or Monarchy by either threatened the European balance of power. Charles left his throne to Louis XIV's grandson Philip who was proclaimed King of Spain on 16 November 1700. Disputes over the separation of the Spanish and French crowns, division of territories and commercial rights led to war in 1701 between the Bourbons of France and Spain and the Grand Alliance, whose candidate was Archduke Charles, younger son of Habsburg Emperor Leopold. By 1710, fighting was deadlocked; Allied victories in Italy and the Low Countries had driven the French back to their borders but they could not achieve a decisive breakthrough while Philip was secure in Spain. When Archduke Charles succeeded his brother Joseph I as Emperor in 1711, Britain effectively withdrew, forcing its Allies to make peace and leading to the 1713 Treaty of Utrecht, followed in 1714 with Rastatt and Baden. Philip was confirmed as King of Spain and renounced the French throne; Spain retained the bulk of its pre-war territories outside Europe with their European territories divided between Austria, Britain and Savoy. Longer term impacts included Britain's emergence as the leading maritime and commercial power, the beginning of the decline of the Dutch Republic, the creation of a centralised Spanish state and the acceleration of the break-up of the Holy Roman Empire.
Question: How many countries had territories divided with Spain?
Answer type: Number
A:
3.