'Count the number of objects matching filtering criteria.'

@classmethod
def count(cls, context, validate_filters=True, **kwargs):

    return len(cls.get_objects(context, validate_filters=validate_filters, **kwargs))
