diff -ruN taxonomy_context/taxonomy_context.module web/modules/taxonomy_context/taxonomy_context.module
--- taxonomy_context/taxonomy_context.module	2008-02-06 19:18:37.000000000 +0100
+++ web/modules/taxonomy_context/taxonomy_context.module	2008-03-02 11:53:45.000000000 +0100
@@ -32,6 +32,11 @@
 define('TAXONOMY_CONTENT_BLOCK_DISPLAY_EXPANDED', 1);
 
 /**
+ * Display node counter in context menu
+ */
+define('TAXONOMY_CONTENT_NODE_COUNTER_DISPLAYED', 0);
+
+/**
  * Implementation of hook_menu()
  */
 function taxonomy_context_menu($may_cache) {
@@ -465,6 +470,12 @@
     $output = "<ul class=\"menu\">\n";
     foreach ($terms as $term) {
       $params = array('title' => $term->description ? strip_tags(node_teaser($term->description)) : t('View this section'));
+      if (variable_get("taxonomy_context_term_node_counter", TAXONOMY_CONTENT_NODE_COUNTER_DISPLAYED)) {
+         $counter = taxonomy_context_term_node_counter($term->tid);
+	 if ($counter) {
+           $term->name .= "(".$counter.")";
+	 }
+      }
       $link = l($term->name, taxonomy_term_path($term), $params);
       $children = '';
 
@@ -596,6 +607,14 @@
     '#options' => array(t('Collapsed'), t('Expanded')),
     '#description' => t('Do you want items on the menu expanded or collapsed by default?'),
   );
+  $form['general_settings']['taxonomy_context_term_node_counter'] = array(
+    '#type' => 'select',
+    '#title' => t('Show node counter per term'),
+    '#default_value' => variable_get('taxonomy_context_term_node_counter', TAXONOMY_CONTENT_NODE_COUNTER_DISPLAYED),
+    '#options' => array(t('Disabled'), t('Enabled')),
+    '#description' => t('Display a node counter beside each term.'),
+  );
+
 
   return system_settings_form($form);
 }
@@ -698,3 +717,10 @@
     }
   }
 }
+
+/**
+  * Node counter for specific term
+  */
+function taxonomy_context_term_node_counter($tid) {
+  return db_result(db_query('SELECT COUNT(*) FROM {term_node} WHERE tid = %d ', $tid));  
+}
