You need to getLineCount() for the items sublist
# suitescript
c
You need to getLineCount() for the items sublist