The work function of some metals is listed below. The number of metals which will show photoelectric effect when light of 300 nm wavelength falls on the metal is.

Photon energy for :
Photoelectrons are emitted only when . This holds for Li (2.4 eV), Na (2.3 eV), K (2.2 eV) and Mg (3.7 eV).
Ag (4.3 eV), Fe (4.7 eV), W (4.75 eV), Cu (4.8 eV) and Pt (6.3 eV) all have , so they show no photoelectric effect; even Ag, the closest, needs 0.16 eV more.
Hence, the answer is 4.
Tagged Electromagnetic radiation, Planck's quantum theory and photoelectric effect. Machine-assigned, so read it as a strong shortlist rather than a verdict.