Count unmerged files correctly