Indonesia the world, extending from east to west and from north to south. According to the country's Coordinating Ministry for Maritime Affairs, Indonesia has 17,504 islands (16,056 of which are registered at the UN), scattered over both sides of the equator, and with about 6,000 of them are inhabited. The largest are Java, Sumatra, Borneo (shared with Brunei and Malaysia), Sulawesi, and New Guinea (shared with Papua New Guinea). Indonesia shares land borders with Malaysia on Borneo, Papua New Guinea on the island of New Guinea, and East Timor on the island of Timor, and maritime borders with Singapore, Malaysia, Vietnam,
Brunei–Malaysia border portion of the South China Sea that is subject to multiple overlapping claims by China, Taiwan and Vietnam. Malaysia is also a claimant in the area but a bilateral agreement with Brunei has solved the overlapping claims over Brunei's territorial waters. From west to east, the Brunei–Malaysia border begins where the watershed of the Baram and Belait river basins meet the South China Sea at a point six nautical miles (11 km) east of Tanjung Baram with coordinates . It then travels along the watershed of the two river basins for about 30 km to the Pagalayan Canal. It then