The size effect of the quantum coherence in the transverse-field XY chain