Improve directory counter.
Merge remote-tracking branch 'origin/master'