Pagination class: Retrieving LIMIT variables

Adding two functions (get_limit_offset and get_limit_count) to
calculate LIMIT offset and row count as need by ActiveRecord.