<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def columnCount(self, qindex=QModelIndex()):

 """Array column number"""

        if self.total_cols <= self.cols_loaded:
            return self.total_cols
        else:
            return self.cols_loaded