The first occurrence of each line is kept and later repeats are removed, so your original order stays intact. The counter shows how many duplicates were found.
Remove Duplicate Lines
Delete repeated lines from any list while keeping the original order. Case and whitespace options included.