'Returns an array of items with the item id and item count.
:param category_inventory:
:return: array of items within a category:
:rtype: array'

def get_category_inventory_list(self, category_inventory):

    x = 0
    category_inventory_list = []
    for c in category_inventory:
        category_inventory_list.append([])
        category_inventory_list[x].append(c)
        category_inventory_list[x].append(inventory.items().get(c).count)
        x = (x + 1)
    return category_inventory_list
