#13 add rule counter