"""Demo 3: print the top N words deterministically."""

counts = {"b": 2, "a": 2, "c": 5, "d": 1}
n = 3

# TODO: Sort by count descending, then word ascending.
# TODO: If n <= 0, keep every row; otherwise keep the first n.
# TODO: Print each row as count<TAB>word.
