Classically, the energy density of a wave is related to:
\mathbf{E}\cdot\mathbf{D}+\mathbf{H}\cdot\mathbf{B}
The power density is related to the Poynting vector which is related to:
\mathbf{E}\times\mathbf{H}
Both the power and energy is related purely to the amplitude of the fields.
However, in terms of quantum electrodynamics, we still consider that the electromagnetic wave to be a field, using quantum field theory. However, the fields that make up the electromagnetic wave are not the electric and magnetic fields. They are instead the fields related to the scalar and vector potentials, \Phi and \mathbf{A}, that are the analogues to the same classical potentials that make up the classical fields. The electric and magnetic fields are now the observables but are no longer the primitives so to speak. These fields have discrete energy levels. The difference between these energy levels are the quanta that we call photons. So each excitation above the ground state for the fields is a single photon.
Thus, the total energy of the fields is represented by the number of photons. However, we cannot measure the total energy of the fields because we cannot place detectors everywhere in space (of course the same argument applies to the classical case, we cannot permeate a volume with field detectors either). Whenever the fields interact, they do so as a point-like interaction with a quanta of energy. That is to say, all interactions are done via the photons. This is how the electromagnetic field is both a wave yet interacts like a particle. I should say that what this means is that we do not assume that there are a bunch of photons running around in space. All we can say is that the interactions with the fields are done via photons but that cannot be construed to how the fields behave outside of these interactions. This is also why I feel it is not really meaningful to talk about the number of photons and energy when it comes to measurement since measurement is conined locally meaning that we are really talking about energy density, not total energy. This relates to how I do not think we can say that space is uniformily permeated with photons. If I said that we have a wave with total energy of 1 W, then we can say that it has X number of photons. However, I do not think we can say that if this same wave has an energy density of Y W/m^3 that we can say that the volume has a photon density.
If we place a detector to measure the field, it does so through photon interactions. We can only measure the number of photons that appear at the detector over time, the photon rate. So, we can measure the electric and magnetic fields (like with a probe or antenna), use this to calculate both the energy (by taking into account the area of the detector) and the power of the field. If we measure the photons (like with a simple CCD), it is generally more meaningful to talk about the power since we are basically just counting up the photons that hit our detector. We could of course integrate in time over the counts to get an average of the energy but I do not think that it is too meaningful to be able to find an instantaneous energy due to the granularity of the photon count, it is more useful by looking at it over a statistical sample. This is exasperated when we have high-frequency low power signals because now we will have a very low rate of photons. We can even attenuate the fields so much that our detectors only measure single photon events. At this point, we could measure, say on average, 1 photon every 30 seconds. Under these conditions, we cannot say that the energy of the wave is zero in between detection events, we have to take into account the statistical sample of measurements over a long period of time to get a meaningful number to the energy of the wave. However, I would argue that we can more readily get a measurement of the power by looking at the rate of detection.
Anyway, since the number of photons is related to the energy, then the rate of photons that interact with a detector over time is related to the power. Both the energy and power are related classically to the amplitude of the fields. Since the energy of each photon is related to the frequency of the signal, then we have the relationships I mentioned above. The additional dependence of energy and power on the number/rate of the photons and their frequency has noticeable consequences, like the existence of shot noise as I mentioned previously.