# Basic syntax: sort input_file | uniq -c # Sort the file first because uniq requires a sorted file to work