fix counter, now that we also count files in the subdirectories