regex count added for the comparison with the count in the rule file