about 100 other countries have diplomatic ties with mongolia , which became the world 's second communist nation when it declared independence in 1924 , but only about 20 maintain resident ambassadors there .