def get_security_group_rules_count(self, context, filters=None): return model_query.get_collection_count(context, sg_models.SecurityGroupRule, filters=filters)
def _get_collection_count(context, model, filters=None): return _model_query.get_collection_count(context, model, filters)