Most efficient way to return total row count on a grouped N1QL query

Gerald, apologies, that went over my head initially.