diff --git a/.gitignore b/.gitignore
index de19b2d..8e330ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,4 +6,4 @@ files/
 managed_files
 phpinfo.php
 settings.php
-
+nbproject
diff --git a/drupal/sites/all/modules/contrib/rate/rate.results.inc b/drupal/sites/all/modules/contrib/rate/rate.results.inc
index 7e08171..7633a35 100644
--- a/drupal/sites/all/modules/contrib/rate/rate.results.inc
+++ b/drupal/sites/all/modules/contrib/rate/rate.results.inc
@@ -26,9 +26,17 @@ function rate_results_page($node) {
     $count = 0;
     $average = 0;
     $sum = 0;
+    $votingapi_functions = array('count', 'average', 'sum');
+
     foreach ($votingapi_results as $result) {
-      ${$result['function']} = $result['value'];
+      if (!in_array($result['function'], $votingapi_functions)) { //custom options, need to tally these together to get a total count
+        $count += $result['value'];
+      }
+      else {
+        ${$result['function']} = $result['value'];
+      }
     }
+
     $output .= '<p>';
     $output .= t('Vote count: @count', array('@count' => $count)) . ' ';
     if ($widget->value_type != 'option') {
