Your list

Result

anna@example.com
leo@example.com
mia@example.com
sam@example.com
Lines before
8
Lines after
4
Lines repeated
3

“One of each” keeps the first time each line appears and drops the rest, in the original order. “Only unique lines” drops every line that appears more than once. “Only the repeats” lists each repeated line once, so you can see what was doubled up.

Free Remove Duplicate Lines by Hiyaly