Removed countRules() function and ruleCounter variable
Updated readme