Photoelectric effect

The total energy or the intensity of the light is $I=nhf$. If $f$ increases while $I$ is kept constant, $n$ has to decrease. That is the energy of individual photon increases (with f). And the number of photons per second would decrease in order to make the same total energy per second.