This is a variation of question asked on this site before.
Consider a set with $_1$ 'distinct' 1s, $_2$ 'distinct' 2s, ... , $_$ 'distinct' ns. You have $_1+1$ choices for the 1s (including the option of none of them being chosen) and similarly for the other elements. The total number of subsets is therefore $(_1+1)(_2+2)...(_+1)$
Now how to find the number of subsets with size $\leq $ 'k'.