-- Homework 23, challenge: Word frequency.
--
-- Given a list of words (some repeated), build a dictionary that
-- maps each unique word to the number of times it appeared. Print
-- every (word, count) pair, one per line.
--
-- Hint: use `(counts[word] or 0) + 1` to start from 0 the first
-- time a word is seen.
--
-- Run with: lua exercises/23/homework/04-word-frequency.lua

local words = {"apple", "banana", "apple", "cherry", "apple", "banana"}

-- Your code goes here:

