code: def columnCount(self, qindex=QModelIndex()):
          
          if self.total_cols <= self.cols_loaded:
              return self.total_cols
          else:
              return self.cols_loaded
docs: Array column number