@staticmethod
def count_unzero_items(items_list):
    """Count nonzero items in list."""
    counter = 0
    for item in items_list:
        if items_list[item] != 0:
            counter += 1
    return counter
