six countries have planted flags on the Moon. These countries and their corresponding missions are:
United States: The United States planted the first flag on the Moon during the Apollo 11 mission in 1969. Subsequent Apollo missions also placed flags, resulting in a total of six flags on the lunar surface.
Soviet Union (now Russia): The Soviet Union placed a flag on the Moon during the Luna 2 mission in 1959. They also landed unmanned rovers with flags during the Luna 17, Luna 21, and Luna 24 missions.
Japan: Japan's flag was planted on the Moon by the unmanned spacecraft Hiten during its mission in 1990.
People's Republic of China: China's Chang'e 5 mission, launched in 2020, returned lunar samples to Earth and reportedly carried a small flag of China.
India: India's Chandrayaan-2 mission, launched in 2019, attempted a soft landing on the Moon and had plans to place the Indian flag. However, the landing was not successful.
Israel: Israel's Beresheet spacecraft, launched in 2019 as part of the Google Lunar X