Using this definition, trivially the natural numbers themselves are countably infinite, but so are the even numbers, the integers and the square numbers.
Form an (infinite) grid like this. Only the first six rows and columns are shown.
We want to show that these can be put into one-to-one correspondence with the natural numbers, and there are two easy ways to think about this.
Zig-zag back and forth through the above table:
List all those whose numerator and denominator add to two, then to three, then to four, etc, like this:
Each of these two ways will form a list of all the rational numbers. Therefore there exists a one-to-one correspondence with the natural numbers. So the rational numbers are countably infinite.
The size of countable sets is given the transfinite number $\aleph_0$ (pronounced "aleph null") (see transfinite numbers)
Are all sets countable? (see Uncountable sets)