I've found a minor bug in the CCM relationships modal: The list shows only the elements that are active and can be seen by the currently logged user, while the badge shows the full count.
For instance, creating a hostgroup and adding an inactive host to it results in this:

Thanks,
Gonzalo