Proof (most number of roots of polynomials)
The sum of multiplicities is the degree of the left hand side of $$ \begin{align*} (t-\lambda_1)^{e_1} (t-\lambda_2)^{e_2} \ldots (t-\lambda_n)^{e_n} \mid f(t) \end{align*} $$ so it cannot be larger than the degree of $f$.