Intensity is the total amount of energy falling on (or going through) a surface/region per unit area $A$ per unit time $t$ and therefore measured in $\rm J/(m^2\,s)$.
For monochromatic radiation, the total energy emitted equals the number of photons $n$ times the energy of one photon, $h\nu$.
Hence intensity $I$ is given by $$I=\frac{hn\nu}{At}$$
For constant area and time, $$I \propto n\cdot\nu$$
This is a very important result. You can increase the intensity of the radiation by either increasing the number of photons in it or increasing energy of each photon, or both.
The number of photons does not necessarily increase when the frequency of the radiation increases; only the energy of each photon increases.
However, for constant intensity, $$n \propto \frac{1}{\nu}$$