Show total and show result with same request

Hello, I’m running a query to list a number of items. I want to display the total of the elements on my dashboard and I will also want to display the elements without having to create 2 queries. Is it possible ?