visitor: increment node count only on add