What's the best way of getting a count of top level results?

When doing pagination I can go through a large result set, is there a way of also returning the size of the result set without a separate count query?

You can use another query block to get the count of top-level items. You could also do the count client-side outside of Dgraph.

There’s no way to return a seperate count of items without explicitly asking for it, which would be the case with another query block.