Mental Model
Count how many times each item appears by using a special box that remembers counts.
Analogy: Imagine sorting colored beads into jars where each jar holds beads of one color and you count how many beads go into each jar.
items: [a, b, a, c, b, a] frequency_map: a -> 3 b -> 2 c -> 1