Say we have $k$ numbers, each of which belongs to the set $S = \{1, 5, 10, 50\}$ How many different sums can be created by adding these numbers?
If $k = 1$, the are four different sums. Also, if $k = 2$, there are ten: $$\begin{align} 1 + 1 = 2 \quad 1 + 5 &= 6 \quad 1 + 10 = 11 \\ 1 + 50 = 51 \quad 5 + 5 &= 10 \quad 5 + 10 = 15 \\ 5 + 50 = 55 \quad 10 + 10 &= 20 \quad 10 + 50 = 60 \\ 50 + 50 &= 100 \quad \end{align}$$
Imagine that we have $k$ baskets, labeled $50,\ 10,\ 5,\ 1.$ If we distribute $k$ balls into the baskets, the number of balls in each basket indicates how many summands of each value to take. The number of ways of distributing the balls can be computed with stars and bars. It is the binomial coefficient $$\binom{k+3}{3}.$$
That leaves the question of whether all the sums are actually different for a particular value of $k,$ and unfortunately, the answer is "no." For example, with $k=6,$ we have $$1\cdot50+5\cdot1=5\cdot10+1\cdot5$$ so that the stars and bars formula counts the number $55$ at least twice.
I doubt that there is a simple way to answer this question for general $k,$ because of the need to account for multiple ways of arriving at the smae sum. This is reminiscent of the subset sum problem which is known to be NP-complete.