Tag Cloud code not displaying

This tag cloud code is not displaying anything. Can you spot why?

{{#get "tags" limit="all" include="count.posts"}}
                {{#if tags}}
                    <div class="tags">
                        <h3>{{t "Tags"}}</h3>
                        <ul>
                            {{#foreach tags}}
                                {{#if count.posts}}
                                    <li>
                                        <a href="{{url}}">{{name}}</a>
                                    </li>
                                {{/if}}
                            {{/foreach}}
                        </ul>
                    </div>
                {{/if}}
            {{/get}}

Should be shown in the footer at the bottom of every page.

My blog:

Hi,

Remove the if statement & it will work
Something like Below

{{#get "tags" limit="all" include="count.posts" order="count.posts desc"}}
         
                    <div class="tags">
                        <h3>{{t "Tags"}}</h3>
                        <ul>
                            {{#foreach tags}}
   
                                    <li>
                                        <a href="{{url}}">{{name}}  <span>{{count.posts}} </span></a>
                                    </li>
                              
                            {{/foreach}}
                        </ul>
                    </div>
            {{/get}}

That worked! thank you.

You are welcome… Cheers!