My test is on ezfind ls 5.3.0
in a search :
it seems that hidden pages are included for counters but not displayed (the second part is correct).
For the record, this code is thrown from the Symfony part but it is still a legacy kernel function.
Steps to Reproduce:
on a eZ publish:
Make a search with ezfind (using ezfind fetch function)
hide a page from the first pages
the total result count has not changed and the first page one less element ( if it's supposed to be 10 elements per pages, there are only 9 on the first).