Pakistan is a Muslim-majority country that borders Afghanistan, China, India and Iran. Since it gained independence from British rule in 1947, the country has seen several military coups overthrow democratic governments.