Index: trunk/tools/make_burntool_pcontrol.pl
===================================================================
--- trunk/tools/make_burntool_pcontrol.pl	(revision 26334)
+++ trunk/tools/make_burntool_pcontrol.pl	(revision 26527)
@@ -267,5 +267,5 @@
     }
     print "\n";
-    $N_ranges += $#start_s;
+    $N_ranges += ($#start_s + 1);
 }
 
