cardinality rule math