restoring word count to editor
optimizing query for file list