How did you do it with stars and bars? I can't really visualise it
Imagine 10 'spaces' corresponding to the digits 0-9, and four dots, which we put into these spaces. The number of dots in each digit's space will be the number of times that digit was selected out of our 4 selected ones.
I.e. • | | | •• | | • | | | | .
The above corresponds to the choice: one 0, two 3's and one 5.
There 9 bars (as there are ten digits) and 4 identical dots, so we just arrange those, as each arrangement of them corresponds to exactly one way of selecting the four numbers (and clearly all the possible ways of selecting them are mapped to exactly one arrangement of the above; in other words there is a bijection between the set of arrangements of the above and the set of possible choices of the digits).