Added page count
Added page count
Fixed pagination