Use thec property of the list object to obtain the number of entries in a list.
NoEntries = mvarListObject.getSize