def compare_fields(df_cols: list, table_cols: list) -> int:
    """Returns match-count of column names in DataFrame compared to the table.

    Args:
        df_cols: Columns of the DataFrame to load
        table_cols: Columns of the table the DataFrame is being loaded into
    Returns:
        Count of matches between the table and the DataFrame's columns and
        will return a zero if the table does not exist at all
    """
    matched_list = [
        i
        for i, (df_col, tbl_col) in enumerate(
            zip(df_cols, table_cols), start=1
        )
        if df_col == tbl_col
    ]

    return len(matched_list)