def item_count(self):
    'get the number of items in the list'
    return GroceryItem.objects.filter(list=self).count()
get the number of items in the list
def item_count(self):
    
    return GroceryItem.objects.filter(list=self).count()