Add -doc-stats options to print document statistics.