The universe has trillions of galaxies and counting. Astronomers give names to each galaxy base on its shape (e.i, Sombrero galaxy, Milkyway Galazy, ect,.).
Also, the size of the galaxy is taken into account and their color.