Added feature of counting collection items without loading content