Number of records in DocumentList

Hi All,
I have around 18-20k records coming from database in a documentList. Is there any way i can find out the number of records in the document list. I like to avoid loop over over the record and catch the $iteration valiable, which says the count.



Service pub.list:sizeOfList should give you this info.