It is not accurate to say that space "ends." Space is a vast, continuous expanse that encompasses the known universe and all of its contents, including the Earth, the planets, the stars, and much more. It is impossible to reach the "end" of space, as there is no physical boundary or edge beyond which space simply stops. Rather, space is thought to extend indefinitely in all directions, and it is possible that there are other galaxies and even other universes beyond what we can observe from Earth.
How many galaxies we know?
It is estimated that there are around 2 trillion galaxies in the observable universe. However, this number is constantly being revised as new discoveries are made and our understanding of the universe expands. The number of known galaxies has increased significantly in recent years, thanks to advances in telescopes and other instruments that allow us to observe more distant parts of the universe. Many of these galaxies are too far away and too faint to be seen with the naked eye or even with telescopes, but they can be detected through their gravitational effects on other objects or through the electromagnetic radiation that they emit or absorb.