Added verification to check whether local file has the expected number of words.