Added code for rule statistics
Merge remote-tracking branch 'origin/master'