This document discusses techniques for scalable real-time processing and counting of streaming data. It outlines several approaches for counting distinct items and top items in a stream in real-time, including using hashes, bitmaps, Bloom filters, HyperLogLog counters, and Count-Min sketches. It also discusses using these techniques to power features like recommendations by analyzing item co-occurrence matrices from user activity streams.