def count_unique_value_in_column(data: list, column: int) -> int:
    """
    Count unique number of items in column. If column number is incorrect returns -1
    :param data:
    :param column:
    :return: Number of unique fields or -1 if column number is incorrect
    """
    unique_values = set()
    if column < 0 and column <= len(data):
        return -1
    for row_index, row in enumerate(data):
        unique_values.add(row[column])
    return len(unique_values)