The command module Columbia made 30 orbits around the Moon during Apollo 11.
Apollo 11 entered lunar orbit on July 19, 1969, after passing behind the Moon and firing the service propulsion engine. Michael Collins remained aboard Columbia while Neil Armstrong and Buzz Aldrin prepared to descend in the lunar module Eagle. During the orbiting phase, Collins photographed the lunar surface and repeatedly passed over the planned landing area.
The mission spent roughly a day in lunar orbit while Armstrong and Aldrin landed, explored the Sea of Tranquility, and launched Eagle's ascent stage back toward orbit. Collins then reunited with them aboard Columbia. The mission account commonly describes the spacecraft completing 30 lunar orbits before the crew departed for Earth.
A common mix-up is confusing these lunar orbits with Apollo 11's Earth orbits shortly after launch. The spacecraft first circled Earth before the Saturn V's translunar-injection burn sent it toward the Moon. Columbia was also the only Apollo 11 spacecraft module to return to Earth; Eagle's ascent stage was left in lunar orbit after docking.