How to to get total count for pagination with gremlin query using java Apache thinker pop

I need to implement pagination in my application. I'm unable to get the total count. can someone help me how to get the total count of records.
Was this page helpful?