title: Tweet Button - hiding zero count
body: <p>I'm interested in adding to some of my sites the official <a href="http://twitter.com/goodies/tweetbutton" rel="nofollow noreferrer">Tweet button</a> which Twitter have recently released.</p>
  <p>For those unaware, the tweet button is a simple bit of JS which you can drop in to a page and it allows your users to easily tweet about the page in question, much like the facebok &quot;share&quot; button.</p>
  <p>There are 3 different styles available:</p>
  <p><img src="https://i.stack.imgur.com/gXVeW.png" alt="Tweet button styles" /></p>
  <p>The horizontal count button is the one I'd like to put on my pages. My problem is that roughly half of my pages are likely to have a zero count, and I'd rather not show the count when this is the case. The facebook share button, for example, handles this particular situation well - if there are &gt; 0 shares, then it shows the count. Otherwise the count stays hidden.</p>
  <p>I've gone through the twitter docs, and can't seem to find a way of specifying this in the JS parameters.</p>
  <p>I also spent some time trying to capture the count via jquery and hide it, but quickly ran in to cross-domain permission issues -</p>
  <pre><code>console.log($('.twitter-share-button').contents().html());
  </code></pre>
  <p>returns a <code>Permission denied</code> error due to the iframe being loaded from <code>platform0.twitter.com</code>.</p>
  <p>Has anyone yet found a successful way to get this button to conditionally show the tweet counts as described above?</p>