Works like `sort  | uniq`, but pre-appends occurrence count on each line.