Six nearest neighbours are there in an atom or ion for an octahedral hole of a closed packed structure. Octahedral coordination is six coordination.
Four nearest neighbors are there in an atom or ion for an tetrahedral hole of a closed packed structure. Tetrahedral coordination is four coordination.