How to Count 100 Billion Things in 12 Kilobytes Maneshwar, a developer building the AI code review tool LiveReview, explains how HyperLogLog can estimate cardinality for massive datasets like 100 billion unique visitors using only about 12 kilobytes of memory instead of a terabyte-scale hash set. The technique, based on Flajolet and Martin's 1985 probabilistic counting work and the 2007 HyperLogLog paper, trades exactness for a compact estimate by tracking the longest leading-zero streak in hashed IDs. Hello, I'm Maneshwar, and I'm building LiveReview — a blast-radius aware AI code review built for your business-critical systems. Star us https://github.com/HexmosTech/LiveReview/ to help devs discover the project, give it a try, and share your feedback to help improve the product. An interviewer asks you a question that sounds almost insultingly easy. How many unique visitors did the site have today? You say: easy, I'll hash every request ID into a set. HashSet