How to calculate the number of scaffolding sections