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: The Peru-Bolivian Confederation was a short-lived state that existed in South America between 1836 and 1839. The country was a loose confederation between the states of Peru, divided into the Republic of North Peru and the Republic of South Peru, and Bolivia, with the capital located in Tacna. The Peru-Bolivian Confederation's formation was personally influenced by Marshal Andres de Santa Cruz, the President of Bolivia, who served as the first and only head of state under the title "Supreme Protector". The Peru-Bolivian Confederation was opposed by neighboring countries from its inception, particularly Chile and Argentina, as a potential military and economic threat, and for its support for dissidents in exile. The War of the Confederation was triggered shortly after its formation when Chile and Argentina independently invaded the country. Argentina was defeated in 1837, but a combined force of Chile and North Peruvian dissidents known as the United Restoration Army were victorious at the Battle of Yungay in January 1839, which de facto ended the confederation as Peru and Bolivia were restored as independent states, and Santa Cruz fled into exile. The Peru-Bolivian Confederation was officially declared dissolved on August 25, 1839, by General Agustin Gamarra after his appointment as President of Peru.
Question: How many countries particularly opposed the Peru-Bolivian Confederation?
Answer type: Number
Output:
2.