Calculating The Number Of Photons