select tag_id, count(*) from *table* group by tag_id order by count(*) desc limit 0,5

şöyle bir şey deneyin hocam, bakalım nasıl bir sonuç alacaksınız ?