Given a large stream of log lines, return the top-k most frequent tokens. The stream may be far larger than memory, so an exact in-memory tally is not always possible — be ready to discuss the memory-bounded variant.
k.k most frequent tokens, most frequent first.logs -> top 3 tokens by count