Retrieves the number of items in a collection (list, data series) of objects of the same type and outputs them as integers.