No one asked, but I figured out the strategy: you don't have to drag the leaves to the tree, but above the trunk. This way you save time by not going up and down with the mouse and the leaves are counted automatically once they reach the bottom of the tree.
I guess I had fun :)