Var-length cardinality estimation