Calculation of the number of capacitors in a power plant