Counting Distinct Values with HyperLogLog
blog.codeship.com