splitted merge and write counting