Another totally different approach would be to measure load voltage (or current), feed this into a true Rms to dc analog converter chip such as an AD536, and use the Rms corrected output to drive a reasonably high frequency voltage controlled oscillator.
What happens is that as the voltage (or current) goes up and down each half cycle, the frequency of the VCO follows it instantaneously. It could be for example 1Hz per Rms milliamp or 1Hz per Rms volt.
So the number of cycles out of the oscillator correspond to the number of Rms milliamps (or volts) in the load.
All you need then is a long digital divider to turn this into suitable units that can then operate an electromechanical (or electronic) totaliser.
For instance if each oscillator cycle equals 1mA
Divide by 1,000 to get 1 Amp per pulse.
Divide by 60,000 for one pulse per Amp/minute
Divide by 3,600,000 for one click of the counter each amp hour, or whatever.
The output could just as easily be scaled directly in power, provided the load resistance is known and constant. Watt seconds, or Kwh maybe ?
The whole thing can be calibrated by adjustment of the voltage controlled oscillator, so really odd division ratios are not required. Powers of two in the divider chain are always more convenient, but that may require an odd oscillator frequency.
It is just as easy to calibrate something to run at say 4,096 Hz as at exactly 4,000 Hz for example, so that no problem.
I have used a system like this for measuring amp hours of battery discharge, but with an Rms to dc converter it should work equally well with ac.