diff -rupN C:\Users\Zvi\Downloads\counter/counter.module C:\Users\Zvi\Downloads\counterPatch/counter.module
--- C:\Users\Zvi\Downloads\counter/counter.module	2010-09-16 20:48:30.000000000 +0200
+++ C:\Users\Zvi\Downloads\counterPatch/counter.module	2010-11-26 12:02:45.508866600 +0200
@@ -105,6 +105,7 @@ function counter_block($op = 'list', $de
   if ($op == 'view') {
     $counter_show_site_counter   = variable_get('counter_show_site_counter',1);
     $counter_show_unique_visitor = variable_get('counter_show_unique_visitor',1);
+	$counter_show_unique_homepage_visitor = variable_get('counter_show_unique_homepage_visitor',1);
 	  $counter_registered_user     = variable_get('counter_registered_user',1);
     $counter_unregistered_user   = variable_get('counter_unregistered_user',1);
     $counter_blocked_user        = variable_get('counter_blocked_user',1);
@@ -237,6 +238,22 @@ function counter_block($op = 'list', $de
       }
 		  $output .= '<li>'.t('Unique Visitor: '). number_format($counter_initial_unique_visitor+$counter_unique).'</li>';
 		}
+ 	    if ($counter_show_unique_homepage_visitor) {
+			if ($data_update) {
+				$sql = " select count(*) as total ".
+					" From (SELECT counter_date from counter where counter_page in (". variable_get('counter_show_unique_homepage_url', '\'/\'') . ") group by concat(year(counter_date) , month(counter_date) , day(counter_date), hour(counter_date),floor( minute(counter_date) / 10)) ) c";
+				$results = db_query($sql);
+				$data = db_fetch_object($results);
+				$counter_unique = $data->total;    
+          
+				$sql = " UPDATE {counter_data} SET counter_value='%s' WHERE counter_name='unique_visitor' ";
+				$results = db_query($sql, $counter_unique);
+			} else {
+				$counter_unique = $counter_value[5];    
+			}
+			$output .= '<li>'.t('Unique Visitor: '). number_format($counter_initial_unique_visitor+$counter_unique).'</li>';
+		}
+
 		
 		if ($counter_registered_user) {
 		  if ($data_update) {
diff -rupN C:\Users\Zvi\Downloads\counter/counter.settings.inc C:\Users\Zvi\Downloads\counterPatch/counter.settings.inc
--- C:\Users\Zvi\Downloads\counter/counter.settings.inc	2010-05-15 08:26:08.000000000 +0300
+++ C:\Users\Zvi\Downloads\counterPatch/counter.settings.inc	2010-11-26 12:03:46.575359400 +0200
@@ -111,7 +111,26 @@ function counter_admin_settings() {
     '#title' => t('Visitors This Year'),
     '#default_value' => variable_get('counter_statistic_year', 1)
   );
-	
+  $form['counter_homepage_statistic'] = array(
+    '#type' => 'fieldset',
+    '#weight' => -10,
+    '#title' => t('Show homepage settings'),
+    '#collapsible' => TRUE,
+    '#collapsed' => FALSE    
+  );
+  $form['counter_homepage_statistic']['counter_show_unique_homepage_visitor'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Show Unique Visitors Of Homepage'),
+    '#default_value' => variable_get('counter_show_unique_homepage_visitor', 1),
+    '#description' => t('Show Unique Visitors Of Home page group by ten minutes')
+  );
+  $form['counter_homepage_statistic']['counter_show_unique_homepage_url'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Homepage urls'),
+      '#default_value' => variable_get('counter_show_unique_homepage_url', '\'/\''),
+      '#description' => t("Which pages are considered homepage (each url is wrapped with \' and separate urls with commas, i.e. \'/\',\'/he\')."),
+  );
+ 		
   return system_settings_form($form);
 }
 function counter_settings_advanced() {  
