Imagine lining up the coins as so:
* * * * * * * * * *
Allocating them to different boxes amounts to placing three dividers between the boxes, where the group of coins between each divider and on the sides are placed in unique boxes.
* * * | * * | * * * * | *
(3, 2, 4, 1)
We have 9 choices...