diff --git a/index.php b/index.php
index 678f79d..247d69b 100644
--- a/index.php
+++ b/index.php
@@ -31,7 +31,10 @@
foreach($output as $tag){
$count = "";
exec($tmsu . "files -c '" . addcslashes($tag . $exclude_query, '(..)') . "'", $count);
- echo("(" . $count[0] .") " . $tag .", ");
+
+ if($count[0] !== "0"){
+ echo("(" . $count[0] .") " . $tag .", ");
+ }
}
?>