--- taxonomy_menu.module.orig	2004-04-20 18:58:43.000000000 +0800
+++ taxonomy_menu.module	2004-04-20 19:01:26.000000000 +0800
@@ -27,6 +27,7 @@
           $old_path = $path;
           
           foreach ($tree as $term) {
+		$count=taxonomy_term_count_nodes($term->tid);
             if ($term->depth <= $old_depth) {
               $slashes_to_remove = $old_depth - $term->depth + 1;
               for ($i = 0; $i < $slashes_to_remove; $i++) {
@@ -36,7 +37,7 @@
             $path = $old_path . "/" . $term->tid;
             $old_depth = $term->depth;
             $old_path = $path;
-            menu($path, t($term->name), "taxonomy_menu_page", $term->weight);
+            menu($path, t($term->name) . "(" . $count . ")", "taxonomy_menu_page", $term->weight);
           }
         }
       }
@@ -90,4 +91,4 @@
   return $term->tid;
 } // _taxonomy_menu_get_tid_from_term
 
-?>
\ No newline at end of file
+?>
