If you are not working with sub records then you s...
# suitescript
a
If you are not working with sub records then you should be able to get the line count passing the right sublist ID...