cardinality counter