add word statistics calculation