Check out this page in {0} translated from {1}translated fromOriginal:Translated:Automatic translation powered by Microsoft® TranslatorStart translatingStop translatingCloseClose and show original pageSelect
This script assumes that all that is in /main is sub folders and a index file
And all the sub folders contain only the files being counted and a index file
if the sub folders do not contain a index file change the maths to var $total=($total+$subc) Beware of timeouts on very large main folders and sub folders