Question: How many contested territorial disputes does Brazil have with its bordering countries?
About the article "Brazil", section "Military".

Candidate passages:
South America is a relatively peaceful continent in which wars are a rare event; as a result, Brazil hasn't had its territory invaded since year 1865 during the Paraguayan War.
Additionally, Brazil has no contested territorial disputes with any of its neighbours and neither does it have rivalries, like Chile and Bolivia have with each other.
However, Brazil is the only country besides China and Russia that has land borders with 10 or more nations.
Moreover, Brazil has of land borders and of coastline to be patrolled and defended.
Overall, the Armed Forces have to defend 8.5 million km2 (around 3.2 million sq.
mi.)
of land and patrol 4.4 million km2 (around 1.7 million sq.
mi.)
of territorial waters - or "Blue Amazon", as the Brazilian Navy calls them.
In order to achieve this mission properly, significant quantities of both man power and funding have to be made available. 
Colombia seeks diplomatic and commercial relations with all countries, regardless of their ideologies or political or economic systems.
For this reason, the Colombian economy is quite open, relying on international trade and following the guidelines given by international law.
Since 2008, Colombia's Ministry of Trade and Commerce has either reached or strengthened Bilateral Trade Agreements with S. Korea, Japan and China, building stronger commerce interchange and development in the Pacific Rim.
Regional relations have also vastly improved under the Santos Administration (2010-current) .
Issues however remain regarding spillover of the FARC leftist-terrorist group, being chased out of hiding in rural areas of Colombia and finding save-havens in non-monitored areas of bordering states.
The FARC numbers have significantly diminished in the last decade to an estimated 5000-7,000.
And while joint-military collaboration has steady increased with the bordering countries of Brazil, Panama, Peru, and Venezuela, the Ecuadorian government, under the Correa administration has done little in assisting the issue.
In 2002, the Ecuadorian government made a controversial move when they closed its main border crossing with Colombia.
Since that time, the main crossing, is only allowed to operate on certain hours of the day.
Evidence has since emerged however, suggesting that a significant number of the FARC's foot-soldiers in and around the Colombia-Ecuador border, consist of Ecuadorian émigré who joined the leftist terrorist group out of need.
Ecuador continues to raise issue over a concerning influx of émigré stemming from guerilla activity at its boarders.
Many of the émigré are returning Ecuadorians but have faced re-entry restrictions imposed by Ecuador's Correa Administration.
In 2012, relations with Nicaragua and Venezuela were tested over territorial island disputes.
Bilateral committees are negotiating the dispute with Venezuela over waters in the Gulf of Venezuela. 
The armed forces of Brazil are the second-largest in Latin America, consist of the Brazilian Army, the Brazilian Navy, and the Brazilian Air Force with a total of 371,199 active personnel.
The Army has 235,978 active personnel.
The Military Police (States' Military Police) is described as an ancillary force of the Army by the constitution, but is under the control of each state's governor.
The Navy once operated some of the most powerful warships in the world with the two dreadnoughts, which sparked a South American dreadnought race between Argentina, Brazil, and Chile.
Today, it is a green water force and one of the ten navies that possesses an aircraft carrier.
The Air Force has about 700 manned aircraft in service.
Brazil has not been invaded since 1865 during the Paraguayan War.
Additionally, Brazil has no contested territorial disputes with any of its neighbours and neither does it have rivalries, like Chile and Bolivia have with each other.
Since 1648 the Brazilian Armed Forces have been relied upon to fight in defense of Brazilian sovereignty and to suppress civil rebellions.
The Brazilian military has also three times intervened militarily to overthrow the Brazilian government.
It has built a tradition of participating in UN peacekeeping missions such as in Haiti and East Timor.
Major disputes.
People's Republic of China.
The Republic of China (ROC), now based in Taiwan, is involved in territorial disputes with many governments bordering China.
Due to the One-China policy, it has no formal diplomatic relations with any of these states.
The ROC recognises neither the People's Republic of China (PRC) nor its border agreements or treaties with any other countries.
Article 4 of the Constitution of the Republic of China states that "The territory of the Republic of China according to its existing national boundaries shall not be altered except by resolution of the National Assembly."
Section 5 of Article 4 of the now overrides this provision.
Thus ROC is involved with all Sino-Indian border conflicts. 
Canada and the United States have negotiated the boundary between the countries over many years, with the last significant agreement having taken place in 1984 when the International Court of Justice ruled on the maritime boundary in the Gulf of Maine.
Likewise, Canada and France had previously contested the maritime boundary surrounding the islands of St. Pierre and Miquelon, but accepted a 1992 International Court of Arbitration ruling.
Remaining disputes include managed maritime boundary disputes with the US (Dixon Entrance, Beaufort Sea, Strait of Juan de Fuca, Machias Seal Island).