MINOR: stats: report the number of currently connected peers

The active peers output indicates both the number of established peers
connections and the number of peers connection attempts. The new counter
"ConnectedPeers" also indicates the number of currently connected peers.
This helps detect that some peers cannot be reached for example. It's
worth mentioning that this value changes over time because unused peers
are often disconnected and reconnected. Most of the time it should be
equal to ActivePeers.
diff --git a/include/types/global.h b/include/types/global.h
index 18cc63e..344003a 100644
--- a/include/types/global.h
+++ b/include/types/global.h
@@ -225,6 +225,7 @@
 extern int  listeners;
 extern int  jobs;               /* # of active jobs (listeners, sessions, open devices) */
 extern int  active_peers;       /* # of active peers (connection attempts and successes) */
+extern int  connected_peers;    /* # of really connected peers */
 extern THREAD_LOCAL struct buffer trash;
 extern int nb_oldpids;          /* contains the number of old pids found */
 extern const int zero;
diff --git a/include/types/stats.h b/include/types/stats.h
index e59a240..2cb23bf 100644
--- a/include/types/stats.h
+++ b/include/types/stats.h
@@ -292,6 +292,7 @@
 	INF_JOBS,
 	INF_LISTENERS,
 	INF_ACTIVE_PEERS,
+	INF_CONNECTED_PEERS,
 
 	/* must always be the last one */
 	INF_TOTAL_FIELDS