how to calculate the number of modules per string