Writes total words and symbols statistics to Directory_stats.txt.