Update sql validator for Count()