return ints for limit and offset