You will be given a definition of a task first, then some input of the task.
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: After long negotiations the territorial changes resulting from the conflict were firmly established at the Treaty of Quedlinburg of 13 May 1523. The main import of these changes were significant gains for the princes of Brunswick-Wolfenbuttel, whilst the Prince-Bishopric of Hildesheim was left with just 4 of its original 22 districts as well as the towns of Hildesheim and Peine, the so-called Kleines Stift of some 90 villages. The ecclesiastical boundary of the diocese remained unchanged. The Principality of Brunswick-Wolfenbuttel was awarded the Amter of Winzenburg, Wohldenberg, Steinbruck, Lutter, Wohlenstein, Schladen, Liebenburg, Wiedelah, Vienenburg and Westerhof with the abbeys of Lamspringe, Heiningen, Dorstadt, Woltingerode, Ringelheim and Riechenberg, as well as the towns of Alfeld, Bockenem, Lamspringe and Salzgitter. The Principality of Calenberg received the houses, i.e.fortified seats, and Amter of Hunnesruck with Markoldendorf, Aerzen, Lauenstein, Grohnde, Hallerburg, Poppenburg, Ruthe and Coldingen, the towns of Dassel, Bodenwerder, Gronau, Elze, Sarstedt, half of Hameln and the abbeys of Marienau, Escherde, Wittenburg, Wulfinghausen and Derneburg. Hildesheim immediately began a legal fight for the return of its Groes Stift . This finally ended in 1643 in the Main Treaty of Hildesheim with a revision of the Treaty of Quedlinburg and return of most of the territories. Exceptions were the Amter of Aerzen, Grohnde, Coldingen-Lauenberg, Lutter am Barenberge, Westerhof and Lindau, which remained with the principalities of Calenberg and Brunswick-Wolfenbuttel. Prince-bishop John IV gave up the prince-bishopric in 1527 and later became canon of Ratzeburg and died in 1547 in Lubeck.
Question: How many Amters was the Principality of Brunswick-Wolfenbuttel awarded?
Answer type: Number
Output:
10.