If $R$ is a simple artinian ring, Wedderburn theory tells us that $R=Mat_n(D)$ for some $n\geq 1$ and division ring $D$ and also every $R$-module $M$ is a direct sum of finitely many copies of the simple $R$-module $D^n$.
Is the number of copies of $D^n$ is an invariant of $M$?
Many thanks.
This is false. Every finitely generated module is a sum of finitely many copies, though. There are certainly modules for semisimple (+Artinian) rings which aren't a finite sum of simple $R$ modules, even if $R$ itself is finite.
If you are asking if the number of copies is well-defined for finitely generated modules, then yes.
The Krull-Schmidt theorem says that when the number of copies is finite, the number is uniquely determined.