pat advance 1071 added, do not forget the last word counts before a newline character