def rowCount(self, parent):
if parent.column() > <NUM_LIT:0>:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>if parent.isValid():<EOL><INDENT>item = parent.internalPointer()<EOL><DEDENT>else:<EOL><INDENT>item = self.root<EOL><DEDENT>return len(item.children)<EOL>
Return number of children *parent* index has.