adds word counting and display of results