In mathematics, the cardinality of a set means the number of its elements. For example, the set A = {2, 4, 6} contains 3 elements, and therefore A has a cardinality of 3. The cardinality of a set A can also be represented as \displaystyle{ |A| }.