'alert if SG has more than 50 rules'

def check_securitygroup_rule_count(self, sg_item):

    tag = 'Security    Group    contains    50    or    more    rules'
    severity = 1
    multiplier = _check_empty_security_group(sg_item)
    rules = sg_item.config.get('rules', [])
    if (len(rules) >= 50):
        self.add_issue((severity * multiplier), tag, sg_item)
