--- taxonomy_menu.inc.old	2008-01-18 15:47:15.000000000 +0000
+++ taxonomy_menu.inc	2008-01-23 01:07:30.000000000 +0000
@@ -149,10 +149,10 @@
         $old_depth  = $term->depth;
         $old_path   = $path;
 
+        $num = taxonomy_term_count_nodes($term->tid);
        if (variable_get('taxonomy_menu_hide_empty', FALSE) == FALSE or $num != 0) {
           $name = t($term->name);
           if (variable_get('taxonomy_menu_display_num', FALSE) == TRUE) {
-            $num = taxonomy_term_count_nodes($term->tid);
             $name .= ' ('. $num .')';
           }
           $items[$path] = array(
