>>So, read `man awk', `man sed' etc,
I found the answer. It was very easy , as you told me in your first post . It is as :
#uniq -c file name
Sorry that I did not noticed it.