Given the task definition and input, reply with output. 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 last action of the war was on the part of the Catalan barons of Roussillon and Cerdagne, which had been assigned to France as surety for war subsidies. The French were only slowly expelled. On 1 February 1473, John entered Perpignan to the joy of its citizens. He placed Catalan garrisons in the castles of Bellegarde, Collioure, and Salses. The French, angered by the abridgement of the treaty of Bayonne, counter-attacked a few weeks later, but some Castilian troops under Prince Ferdinand successfully resisted. John began negotiations that led to a truce in July and a treaty at Perpignan on 17 September. John recognised the treaty of Bayonne in return for French recognition of his sovereignty in the disputed provinces. John agreed to pay 300,000 ecus, and Roussillon and Cerdagne were proclaimed "neutral" until the payment was made. John returned to Barcelona triumphant, but failed to raise the necessary funds. In the summer of 1474 the French conquered Roussillon and March 1475 Perpignan fell to them. The French raided the Emporda as far as Girona in 1476, and John, his allies tied up by their own wars, could not even oppose them. In October 1478 he ceded the two provinces to France until he could redeem them with cash. Revolts against his authority flared in Aragon and Valencia, which had stayed out of the civil war, and he failed to put them down. He did succeed in quashing a revolt in Sardinia.
Question: How many castles did John place garrisons at?
Answer type: Number
3.