Given a stream of incoming barcode data, how would you find the top K most frequently scanned items in real-time?