def get_max_cols(worksheet):
    """
    Gets the number of non-empty columns of the current worksheet.

    :param worksheet: Current worksheet to manipulate.
    :return: Number of non-empty columns
    """
    return worksheet.max_column