This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Photon energy $=\frac{hc}\lambda=\frac{6.6\times10^{-34}\times3\times10^8}{400\times10^{-9}}=4.95\times10^{-19}$ J $=3.09$ eV. Photoemission needs $E>W_0$: Li ($2.42$), Na ($2.3$) and K ($2.25$) qualify; Mg, Cu and Ag do not. So $3$ metals. Answer: 3.