Small improvements. Rule count is outputted to the file and LOGGER.