@classmethod
def count_address(cls, address, topology):
    """
        Count nodes with the specified address and topology.
        :param address: string
        :param topology: Topology instance
        :returns: int
        """
    address = '"{}"'.format(address)
    return cls.objects.filter(topology=topology, addresses__contains=address
        ).count()
