def METHOD_NAME(self, parent = None) -> int:
    """This function is necessary because it is abstract in QAbstractListModel.
    Under the hood, Qt will call this function when it needs to know how
    many items are in the model.
    This pyqtSlot will not be linked to the itemsChanged signal, so please
    use the normal count() function instead.
    """
    return self.count