Is having 2 in one photo allowed and counted as 2 or do I have to take them separately?
It's acceptable for a single photo to contain two Messier objects, and even more is fine too. There's no need to publish them separately.