Fix pagination count call