remove deduplicate key count