one caveat here, if `params["per_page"]` evaluates to an empty string, the result will be 1.  (not sure under what conditions, if any, empty string would be the result)