renames item['count'] to item['total']