def count_missing_stats(manifest):
    """
    count the number of samples in manifest with missing depth or read length
    """
    num_missing = 0
    for element in manifest:
        if element.missing_stats():
            num_missing += 1
    return num_missing