Index: views/nodereferrer_view_handler_field.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodereferrer/views/nodereferrer_view_handler_field.inc,v
retrieving revision 1.3
diff -u -r1.3 nodereferrer_view_handler_field.inc
--- views/nodereferrer_view_handler_field.inc	29 Oct 2009 17:54:29 -0000	1.3
+++ views/nodereferrer_view_handler_field.inc	19 Nov 2009 10:16:32 -0000
@@ -16,6 +16,15 @@
   function options_form(&$form, &$form_state) {
     parent::options_form($form, $form_state);
 
+    $form['count'] = array(
+      '#type' => 'select',
+      '#multiple' => FALSE,
+      '#title' => t('Display referrers count'),
+      '#options' => array('no' => 'No', 'yes' => 'Yes'),
+      '#description' => t('Choose Yes to only display the number of referrers node, it will overwrite other formatting options'),
+      '#default_value' => empty($this->options['count']) ? 'no' : $this->options['count']
+    );
+
     $options = nodereferrer_field_formatter_info();
     foreach ($options as $k => $v) {
       $options[$k] = $v['label'];
@@ -107,6 +116,9 @@
     foreach ($list as $k => $v) {
       $list[$k] = theme('nodereferrer_field_' . $this->options['formatter'], $v);
     }
+    if ($this->options['count'] == 'yes') {
+      return (string)count($list);
+    }
     if ($this->options['list'] == 'list') {
       if (count($list)) {
         return '<ul><li>' . implode('</li><li>', array_filter($list)) . '</li></ul>';
