or rather packagecount -1 if it starts at 0
# suitescript
k
or rather packagecount -1 if it starts at 0