Does it help?
{{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
{{#foreach tags}}
<li><a href="/tag/{{name}}">{{name}}</a></li>
{{/foreach}}
{{/get}}
Honestly, I haven’t tried this code. It comes from this article.