$node->appendText( $node->textContent() x (shift(@counts) - 1) );