add word count to file editor