Custom Drag and Drop Creation

I am attempting to create a custom Drag and Drop style question. Here are the details:

There 10 bananas on the left side of the screen (objects) and a basket (target) on the right. I can't figure out how to modify it so that dragging only 8 of the bananas onto the basket results in a correct response. If the user drags any number of bananas other than 8, the user will get it incorrect. Any ideas? I can provide a screenshot if necessary, but I think the issue relates to variables. Thanks in advance.

2 Replies