#82325List module pagination does not work since doctrine migration
Description
The list module pagination adds a pointer parameter to the url – that pointer parameter gets transformed to a LIMIT/OFFSET configuration for the pagination. But it also gets taken into account when trying to calculate the total number of items (which fails, as a count(*) query does not have enough results for the offset / limit to work ;)).