import csv


def csv_reader(file_obj):
    """
    Read a csv file
    :return: list 404 pages, count of pages
    """
    reader = csv.reader(file_obj)
    count_404, count_all = 0, 0
    list_404 = []
    for row in reader:
        count_all += 1
        if row[1] == '404':
            count_404 += 1
            list_404.append(row[0])

    return list_404, count_404