--- taxonomy_dhtml.module	2007-03-03 15:07:47.000000000 +0200
+++ taxonomy_dhtml.module	2007-10-15 18:48:06.000000000 +0300
@@ -31,12 +31,14 @@ function taxonomy_dhtml_vocab_vert($voca
     }
     $link = l(t($term->name), $url, array("title" => t($term->description)));
 //    $out .= _taxonomy_depth($term->depth, "&nbsp;")."- $link";
-    $out .= str_repeat("&nbsp;", $term->depth) . "- $link";
     $count = taxonomy_term_count_nodes($term->tid);
-    if ($count) {
-      $out .= " ($count)";
+    if ($count >= variable_get('taxonomy_dhtml_overview_min_show_count',0)){
+	$out .= str_repeat("&nbsp;", $term->depth) . "- $link";
+	if ($count) {
+    	    $out .= " ($count)";
+	}
+	$out .= "<br />";
     }
-    $out .= "<br />";
   }
   return $out;
 }
@@ -223,6 +225,14 @@ function taxonomy_dhtml_settings() {
     '#maxlength' => 3,
     '#description' => t('The number of items to display per vocabulary in the overview page.'),
   );
+  $form['taxonomy_dhtml_overview_min_show_count'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Number of nodes'),
+    '#default_value' => variable_get('taxonomy_dhtml_overview_min_show_count', 0),
+    '#size' => 3,
+    '#maxlength' => 3,
+    '#description' => t('The minimum number of assigned nodes needed for the item to be displayed in the overview page.'),
+  );
   return system_settings_form($form);
 }
 
