How many astronauts have walked on the Moon?

Twelve astronauts walked on the Moon between 1969 and 1972. They were part of the six Apollo missions which each landed two astronauts on the Moon's surface.