def METHOD_NAME(self):
    """Update row count etc."""
    new_count = self.rowCount()
    # if the number of rows have changed
    if self._row_count != new_count:
        #self.logger.info('Number of components changed')
        # When a model is reset it should be considered that all
        # information previously retrieved from it is invalid.
        # This includes but is not limited to the rowCount() and
        # columnCount(), flags(), data retrieved through data(), and roleNames().
        # This will loose the current selection.
        self.modelReset.emit()
        self._row_count = new_count