Make the same system that changes the element number to change the style.
Following example in PHP, adapt to the language of your system:
// Antes:
echo "<span class=\"bolinha\">$comentarios</span>";
// Mude para:
$estilo=($comentarios==0)?'invisivel':'bolinha';
echo "<span class=\"$estilo\">$comentarios</span>";
Then just create .invisivel {display: none}
.
Or with JS:
contador = document.getElementById("contador");
contador.className = (contador.innerHTML == '0')?'invisivel':'bolinha';
Do not forget to id="contador"
in the element, or update the existing JS pro id.
See the demo on JSFiddle (change the value and press Run).