def METHOD_NAME(self, extended_search_mode):
    if self._mode == "index" and extended_search_mode == True:
        return max(self._mapper.get_opmap())
    else:
        return len(self._mapper.get_oplist())