As the accepted answer above, you could use len(col)
to determine the length of the collection, i.e. how many images are there in the collection.
But I think the question title is a bit misleading, one might think what you are trying to achieve is to get the size (i.e. in Bytes) of an object, in this case, you could use sys.getsizeof(col)
and this will return the size of this object, in Bytes, see this answer
P.S. this answer should be posted as a comment, but I couldn't do so not having enough rep, apologies to the SO community.
Edit:
If you are interested in getting the size in Bytes of an object, please go through the other answers posted under this question, as the sys.getsizeof()
isn't always accurate.