Replaced maxCount call with count. maxCount is how many items the object stores at maximum, and count is the total number of items stored by the object.