This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $La^{3+}$ ($4f^0$) and $Lu^{3+}$ ($4f^{14}$) have no unpaired f electrons and are colourless. $Eu^{3+}$ is pale pink, $Nd^{3+}$ lilac and $Sm^{3+}$ yellow. So $2$. Answer: 2.