Messier's occupation as a comet hunter led him to continually come across fixed diffuse objects in the night sky which could be mistaken for comets. He compiled a list of them, in collaboration with his friend and assistant Pierre Méchain (who may have found at least 20 of the objects), to avoid wasting time sorting them out from the comets they were looking for. The entries are now known to be 39 galaxies, 4 planetary nebulae, 7 other types of nebulae, and 55 star clusters.