In your equation you used E=5 Joules. Are you sure each photon emitted has an energy of 5 Joules? A photon at a certain wavelength will only have one energy, and, as a hint, it is not 5 joules. For a photon of light, a statement about its wavelength or frequency is a statement about its energy. Wavelength, frequency and energy of a photon are all interrelated via E=hf.