Try it!
Each row will have the same count against it, so in your example,
all the 'pc' entries will have a count of 4, all the 'pip's 3 and daruma 2
If you sort descending by the count you should end up with the result you want
I've put you example in a spreadsheet:
NAME COUNT
pc 4
pc 4
pc 4
pc 4
pip 3
pip 3
pip 3
darumla 2
darumla 2