parse cardinality