Returns the number of elements in a set.
(<=> (Cardinality ?Set)
(And (Set ?Set)
(Exists (@Elements)
(And (= ?Set (Setof @Elements))
(= ?Integer (Length (Listof @Elements)))))))
(=> (Cardinality $X $Y) (Set $X))
(=> (= (Cardinality ?Set) ?Integer)
(Exists (@Elements)
(And (= ?Set (Setof @Elements))
(= ?Integer (Length (Listof @Elements))))))
(=> (= (Cardinality ?Set) ?Integer) (Set ?Set))