Shouldn't this be `len(items_for_task)`?