@classmethod
def search_count(cls, domain):
    """
        Return the number of records that match the domain.
        """
    res = cls.search(domain, order=[], count=True)
    if isinstance(res, list):
        return len(res)
    return res
