Limit on number of nodes

Hi,

I have a palette and diagram scenario. Is it possible to limit the number of nodes that can be dragged onto the canvas at any given point of time?

It would be easiest to set Palette.maxSelectionCount: