How many contested territorial disputes does Brazil have with its bordering countries ?
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 .