Select some rules (the counter indicates how many rules are selected)
Import another JSON cointaining rules
The counter is not reset, it still indicates how many previous rules were selected. If you select/unselect some newly imported rules the counter is increased/decreased but it's wrong
Steps to reproduce: