def _item_count(self):
        return len(self._objectives)
This is used by the replace function to determine if a delegate from
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/hasobjective.py/HasObjectives._item_count