Adaptive Cardinality Estimation