merge adaptive counting and hyperloglog algorithms