modified the logic to return number of entries
Reading text from list view in appropriate way