Fix counting of rules in Ardent::updateUniques.

Change from `if (count($rules == 0))` to `if (count($rules) == 0)`.