Emit number of nodes signal on undo/redo calls