compute rank of each hashtag