Count, clean and compare your text.

Count Unicode characters and UTF-8 bytes, remove duplicate lines and tidy whitespace.