Step 1: Recall definition.
The coordination number is the number of nearest neighbours surrounding a particle in a crystal lattice.
Step 2: hcp structure.
In hexagonal close packing, each atom is surrounded by 12 equidistant atoms (6 in the same layer, 3 above, and 3 below).
Step 3: Conclusion.
Thus, the coordination number in hcp is 12.