How to get document count and paginated result in 1 single call

I would recommend against using $facet as performance-wise it’s going to be worse than just about any other option.