printing cardinality of set