If this is just an operation that you want to do yourself (and not a component that you want to use), the most practical way for me would be to do something like this:
sort <filename> | uniq -c | sed 's/^[ \t]*//' | sort -rn
, , , , .
EDIT: " ;" uniq " , , [] [item],
12
12
24
25
25
25
2 12
1 24
3 25
sed ( , , , ), ( "n" , "r" ).
(, , , - ), "":
sort -t'\t' -k3 <filename> | ...
, , , .
2: ( )
cut -d'\t' -f4 <filename> | sort | uniq -c | sed 's/^[ \t]*//' | sort -rn