Print the number of occurrences and the second field (separated by ':') of each line in the file /etc/passwd, sorted numerically, and then print each result on a separate line.
cut -f 2 -d ':' /etc/passwd | sort -n | uniq -c | xargs -n 1 echo