FIX: pagination

The total number of elements was not the total number of files fitting
te query, but only the length of the page: no second page...