Sum total number of items returned by a LogQL qery

Seems similar to this issue, can you take a look at it?