Calculation of the number of solar collectors in series