Победитель - Orange_Doggy_!
http://i3.ambrybox.com/060411/1302095860269.gif

1 = 2
2 = 4
3 = 0
4 = 2
5 = 3
6 = 1
7 = 1
8 = 3
9 = 0
10 = 2