Fix warning_count is not int.