Move numregulators to regulator.h
diff --git a/regulator.h b/regulator.h
index c8aac5e..91e01d8 100644
--- a/regulator.h
+++ b/regulator.h
@@ -23,6 +23,8 @@
 
 #define VALUE_MAX 16
 
+int numregulators;
+
 struct regulator_info {
 	char name[NAME_MAX];
 	char state[VALUE_MAX];