← all problems

countWords

Given an open BufferedReader over a text file, return the total number of whitespace-separated words in the file. You are responsible for reading the file until it ends; do not close it yourself.