X.rulesCounting function

Rule voting by counting matching rules