def columnCount(self, index=QtCore.QModelIndex()):
        return len(self.headers)
returns number of columns
dataset/ETHPy150Open datalyze-solutions/pandas-qt/pandasqt/models/ColumnDtypeModel.py/ColumnDtypeModel.columnCount