diff --git a/inc/indexer.php b/inc/indexer.php
index 915f269387e2272744c5fb6b33289dbc6d47cfcb..cc2a9ebbfb81be0cf9c22533e7565e61a9c884a7 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -61,7 +61,7 @@ function idx_getPageWords($page){
             foreach ($arr as $w => $c) {
                 if (!is_numeric($w) && strlen($w) < 3) continue;
     		    $w = utf8_strtolower($w);
-                $words[$w] = $c + (isset($words[$w]) ? $words[$w] : 0);
+                $words[$w] = $c * $count + (isset($words[$w]) ? $words[$w] : 0);
             }
         } else {
             if (!is_numeric($word) && strlen($word) < 3) continue;