add cardinality computation/estimation.