You will be given a definition of a task first, then some input of the task.
This task involves creating questions from a given passage that involve some kind of complex reasoning (including numerical reasoning).
The generated questions must require looking at more than one part of the passage to answer. Try to use a variety of reasoning types in your questions (some of the sample reasoning types are illustrated in the 'positive examples' field) and also have a variety of answer types (spans, numbers, dates). A span is a continuous phrase taken directly from the passage or question. In such questions, the answer spans are recommended to be five words. Questions with answer type "number", are expected to start with "How many". For instance, "How long did an event last?" can be phrased as "How many years did an event last?". To increase diversity, try to create more questions for which the answer will be multiple spans. Please create questions that require AT LEAST 2 arithmetic operations as illustrated in the 'positive examples' field. You are encouraged to try DIFFERENT COMBINATIONS of operations and not just limit to the combinations shown in those examples. The more challenging questions you create, the better it is.

Passage: With this victory, John I was recognised as the undisputed king of Portugal, putting an end to the interregnum and anarchy of the 1383-1385 crisis. Recognition from Castile would not arrive until 1411, after another Portuguese victory at the Battle of Valverde, with the signing of the Treaty of Ayllon. The English-Portuguese alliance would be renewed in 1386 with the Treaty of Windsor and the marriage of John I to Philippa of Lancaster, daughter of John of Gaunt. In 1387, taking advantage of the renewed alliance, John I, leading a Portuguese army of 9,000 men, reinforced by a 1,500-man English contingent that landed in Galicia, invaded Castile to sit John of Gaunt on the Castilian throne, which he claimed on his marriage to Infanta Constance of Castile. The Castilian forces refused to offer battle, after two months no significant town was taken and the allies, struck by disease and lack of supplies, met with an overwhelming failure. The treaty, still valid today, established a pact of mutual support between the countries: Indeed, Portugal would use it again against its neighbours in 1640, to expel the Spanish Habsburg kings from the country, and again during the Peninsular War. The Anglo-Portuguese Alliance would also be used by Britain in the Second World War and during the 1982 Falklands War.
Output:
How many times was the treaty used after its inception?