def METHOD_NAME(self, layout):
    # display names currently being tracked, stop at the first 5..
    if self.object_names:
        remain = len(self.object_names) - 5
        for i, obj_ref in enumerate(self.object_names):
            layout.label(text=obj_ref.name)
            if i > 4 and remain > 0:
                postfix = ('' if remain == 1 else 's')
                more_items = '... {0} more item' + postfix
                layout.label(text=more_items.format(remain))
                break
    else:
        layout.label(text='--None--')