Fix all demo to provide example corpus statistics

Change-Id: I1eef78df0de89ffe96f846a56b03916c8939be9c
diff --git a/dev/demo/alldemo.js b/dev/demo/alldemo.js
index 3b75c80..b5a5831 100644
--- a/dev/demo/alldemo.js
+++ b/dev/demo/alldemo.js
@@ -747,6 +747,14 @@
   }
 };
 
+//corpus statistic
+var statistic = {
+  "documents":1,
+  "tokens":222222,
+  "sentences":33333,
+  "paragraphs":444
+};
+
 requirejs.config({
   baseUrl: '../js/src',
   paths : {
@@ -782,6 +790,12 @@
   KorAP.API.getTextInfo = function (doc, param, cb) {
     cb(textInfo);
   };
+
+  //get the corpus statistic (demo function)
+  KorAP.API.getCorpStat = function(collQu, cb){
+    return cb(statistic);
+  }; 
+
   
   /**
    * Do some things at the beginning.