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 and Sabah, Malaysia, on the other. All three territories were then ruled by Britain. The powers for the order in council were derived from the British Colonial Boundaries Act of 1895. Brunei and Malaysia still adhere to the British Orders in Council to define their territorial waters, where it was referred to in the Joint Statement made after the 18th Annual Leaders' Consultation between the Sultan of Brunei and Prime Minister of Malaysia on 3 November 2014 when reference was made to the Sarawak (Definition of Boundaries) Order in Council 1958 No 1518 as part of the boundary definition process