In mathematics, a countable set is a set with the same cardinality (number of elements) as some subset of the set of natural numbers. A countable set is either a finite set or a countably infinite set. Whether finite or infinite, the elements of a countable set can always be counted one at a time and, although the counting may never finish, every element of the set is associated with a unique natural number.
Some authors use countable set to mean countably infinite alone. To avoid this ambiguity, the term at most countable may be used when finite sets are included and countably infinite, enumerable, or denumerable otherwise.
Georg Cantor introduced the term countable set, contrasting sets that are countable with those that are uncountable (i.e., nonenumerable or nondenumerable). Today, countable sets form the foundation of a branch of mathematics called discrete mathematics.
A set S is countable if there exists an injective function f from S to the natural numbers N = {0, 1, 2, 3, ...}.
If such an f can be found that is also surjective (and therefore bijective), then S is called countably infinite.
In other words, a set is countably infinite if it has one-to-one correspondence with the natural number set, N.