How many contested territorial disputes does Brazil have with its bordering countries ?
South America is a relatively peaceful continent in which wars are a rare event ; as a result , Brazil has n't had its territory invaded since year 1865 during the Paraguayan War .