How can I get last inserted Counter_id from couchbase bucket?

java
n1ql
sdk

#1

How can I get last inserted Counter_id from couchbase bucket ? So that I can increment a value from last inserted id + 1. I am using couchbase java-client 2.5.5.

Kindly provide your inputs.


#2

Any updates here really appreciated!