Adding getNumberOfBranches method to sync logic
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index de7182e..d91923c 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -577,5 +577,12 @@
   return os.str();
 }
 
+size_t
+SyncLogic::getNumberOfBranches () const
+{
+  recursive_mutex::scoped_lock lock (m_stateMutex);
+  return m_state->getLeaves ().size ();
+}
+
 
 }