Set Cardinality The cardinality for a Set S is the number of elements in S and denoted as ∣S∣. Cardinality is only defined for finite sets.