Removed getview count logic from getCollection API