fix pagination when @total_size is devisible by @count

Old implementation:

```ruby
@total_size = 25
@count = 101
# last page = 25/101 + 1 = 5

@total_size = 25
@count = 100
# last page = 25/100 + 1 = 5 # should be 4
```