Nobody has counted them. For the observable Universe, estimates range from a few hundred billion to about 2 trillion, depending on how you account for galaxies too small and too distant to be seen. Beyond what we can observe, the Universe very likely holds far more.
These figures are extrapolations. Astronomers count galaxies in small patches of sky imaged for very long exposures by space telescopes, then scale the result up to the whole sky. The Hubble Ultra Deep Field, released in 2004, contains nearly 10,000 galaxies in a tiny corner of the sky.
In 2016, a study led by Christopher Conselice used those deep fields and models to estimate that the observable Universe might hold about 2 trillion galaxies, most of them small and faint. In 2021, measurements from the New Horizons probe, taken far from the zodiacal light of the inner Solar System, showed a background of visible light consistent with only a few hundred billion galaxies. The debate centers on distant dwarf galaxies that are too faint to detect one by one. Observations with the James Webb Space Telescope are refining these estimates.
With the naked eye you can see a handful of galaxies: the Milky Way, the Andromeda Galaxy under a dark sky and, from the Southern Hemisphere, the two Magellanic Clouds. A small telescope reveals hundreds of them as faint smudges, and the site's catalog lists thousands.
In practice
Key terms
More questions: Stars and the Universe
Sources: C. J. Conselice et al., The Astrophysical Journal, 2016 ; T. R. Lauer et al., The Astrophysical Journal, 2021 (New Horizons) ; NASA and ESA, Hubble Ultra Deep Field, 2004