diff --git a/lib/routes/apiv1.js b/lib/routes/apiv1.js
index <HASH>..<HASH> 100644
--- a/lib/routes/apiv1.js
+++ b/lib/routes/apiv1.js
@@ -331,19 +331,21 @@ function getKeysTree(req, res, next) {
             return callback(err);
           }
           keyData.attr.rel = type;
-          var sizeCallback = function(err,count){
-              if(err){
-                return callback(err);
-              }else{
-                keyData.data+=" (" + count + ")";
-                callback();
-              }
-            };
-          if(type=='list'){
-            req.redisConnection.llen(keyData.fullKey,sizeCallback);
-          }else if(type == 'set'){
-            req.redisConnection.scard(keyData.fullKey,sizeCallback);
-          }else{
+          var sizeCallback = function (err, count) {
+            if (err) {
+              return callback(err);
+            } else {
+              keyData.data += " (" + count + ")";
+              callback();
+            }
+          };
+          if (type == 'list') {
+            req.redisConnection.llen(keyData.fullKey, sizeCallback);
+          } else if (type == 'set') {
+            req.redisConnection.scard(keyData.fullKey, sizeCallback);
+          } else if (type == 'zset') {
+            req.redisConnection.zcard(keyData.fullKey, sizeCallback);
+          } else {
             callback();
           }
         });
Show sorted set counts in redis tree