modified count doc numbers rule.