use params in count, to have correct number of pages