correct method for counting collection items