title: Blogger - How to limit blogger's post label
body: <p>I need to know how can I limit those post labels in blogger. I have searched out for it and could not find anything related to limiting post labels. This is what I have achieved so far. </p>
  
  <p><strong>NOTE:</strong>  I want to show limited post labels under each post title. Like </p>
  
  <pre><code>if(post_label.count() &lt; 3) { //show post label }
  </code></pre>
  
  <p>So, I need to show 3 labels under each post's title.</p>
  
  <hr>
  
  <pre><code>&lt;div class='post-category'&gt; 
      &lt;span class='post-label'&gt;
          &lt;b:if cond='data:post.labels'&gt;
              &lt;b:loop values='data:post.labels' var='label'&gt;
                  &lt;a expr:href='data:label.url + &amp;quot;?&amp;amp;max-results=10&amp;quot;' rel='tag'&gt;
                      &lt;data:label.name/&gt;
                  &lt;/a&gt;
                  &lt;b:if cond='data:label.isLast != &amp;quot;true&amp;quot;'&gt; 
                  &lt;/b:if&gt;
              &lt;/b:loop&gt;
          &lt;/b:if&gt;
      &lt;/span&gt; 
  &lt;/div&gt;
  </code></pre>