code: @View(name = "count", map = "function(doc) { if(doc.token && doc.userId) { emit(doc._id, doc) } }", reduce = "_count")
      public long count() {
          val rows = db.queryView(createQuery("count")).getRows();
          if (rows.isEmpty()) {
              return 0;
          }
          return rows.get(0).getValueAsInt();
      }
docs: Total number of tokens stored.
  
  @return number of tokens in database