The coordination number of an ion is the number of ions of opposite charge that surround the ion in a crystal. In NaCl, each ion has a coordination number of 6.
In CsCl, each ion has a coordination number of 8. In TiO2, each Ti4+ ion has a coordination number of 6, while each O2- ion has a coordination number of 3.