File count during tree building