Fix confusion in count with Text nodes