Constraining the mass-concentration relation through weak lensing peak function