def columnCount(self, parent):
<EOL>if parent.isValid():<EOL><INDENT>return parent.internalPointer().columnCount()<EOL><DEDENT>else:<EOL><INDENT>return self.root.columnCount()<EOL><DEDENT>
Returns the number of columns for the children of the given parent.