If you have the dimension of $V$ and the cardinality of $W$ available, then $|W|^{\text{dim}(V)}$gives you the cardinality of $\text{Hom}_k(V,W)$, because a linear map from $V$ to $W$ is given by arbitrarily mapping a basis for $V$ into $W$ and then extending linearly.
If you have only the dimensions of $V$ and $W$, then, in order to apply the preceding information, you need to find the cardinality of $W$. This will be $|k|^{\text{dim}(W)}$ if $W$ is finite-dimensional. If, on the other hand $\text{dim}(W)$ is infinite, then $|W|$ will be $\text{dim}(W)\cdot |k|^{<\omega}$, where $|k|^{<\omega}$ means the number of finite sequences of elements of $k$, which equals $|k|$ if $k$ is infinite and $\aleph_0$ if $k$ is finite.