Contador de posts e comentários

Views:
<script type="text/javascript">  function showpostcount(json) {  document.write(parseInt(json.feed.openSearch$totalResults.$t,10));  }
</script>
<div style="width:108px; height:43px; position:relative; font-size:13px; font:Verdana, Arial, Helvetica, sans-serif;">
<span style="position:absolute; top:5px; right:7px;">
<script src="/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script>
</span>
<span style="position:absolute; bottom:5px; right:7px;">
<script src="/feeds/comments/default?alt=json-in-script&callback=showpostcount"></script>
</span>
<img src="https://1.bp.blogspot.com/-3N5M2rTIQ_c/XZ0M4dA_7BI/AAAAAAABm-8/strLypnMhHIpCCIGouNLHw0xtUqJNHTvACLcBGAsYHQ/s1600/contador.png" />
</div>