Paginator::getTotal() was returning a string

Ints as strings are annoying when you're making a JSON API.
fix ordering of args.