Adding a method that allows us to execute the count query on a pager …
Adding a method that allows us to execute the count query on a pager before the query is executed.