This is wrong. The logic inside the loop can modify ``$this->rules``, sohte count can change