Now counts words in all korpus documents and exits on window close