add collection.count method