Word count

  1. Write a script that counts the number of occurrences of each word in a text file.
  2. Print out the word and its count for each word in the document.
  3. Print out the total word count and the total line count.

Additional tasks:

What you will learn: