title: Count the coins including permutations of the same sequence
body: <p>I've found a code to find number of possibilities to make change using given coins: <a href="https://stackoverflow.com/questions/4243831/how-to-count-possible-combination-for-coin-problem"> How to count possible combination for coin problem</a>. But how to count it, if we think about different permutations of the same sequence? I mean that, e.g. amount is 12, and "4 4 2 2" and "4 2 4 2" should be counted as 2, not 1.</p>