added number count
fixed merge probs