I want to count all the possible cases that I can distribute k distinguishable items in n distinguishable bins, for example for 3 items and 2 bins I have the next n^k the possible cases are:
I want to sum all the events, i.e.,

In the end, one case must to happened and the answer should be a,b,c. There isn´t restriction for n and k, and I can have empty bins.
I might be mistaken, but I think that the general solution is $n^k$, which may be proven by induction on the number of items.
For example, to each placement of $k$ items in $n$ boxes, one may add an additional item $a_{k+1}$ at the end of any of the $n$ boxes to obtain all placements of $k+1$ distinguishable items in $n$ boxes. Thus, the number of solutions is $n\cdot A(n,k)=n^{k+1}$, by induction hypothesis. (Here $A(n,k)$ is the number of solutions of our problem with $n$ boxes and $k$ items).