def get_columns(values, cols):
    """Returns number of columns to display."""
    columns = []
    col_size = len(values) // cols
    extra = len(values) % cols
    n = 0
    for i in range(cols):
        s = col_size
        if i + 1 <= extra:
            s += 1
        this_column = values[n:n + s]
        columns.append(this_column)
        n += s
    return columns
