Detect the most frequent items in a stream