@ View ( name = "count" , map = "function(doc) { if(doc.secretKey) { emit(doc._id, doc) } }" , reduce = "_count" ) public long count ( ) { return db . queryView ( createQuery ( "count" ) ) . getRows ( ) . get ( 0 ) . getValueAsInt ( ) ; }
Total token accounts in database .