Now handle counting words that terminate in EOF.