code: def columnCount(self, parent):
          
          # print("columnCount:",self)
          if parent.isValid():
              return parent.internalPointer().columnCount()
          else:
              return self.root.columnCount()
docs: Returns the number of columns for the children of the given parent.