I want to automate my testing for Base update. Below is the scenario. Please HELP!!!!!!

We are using IBM i (AS400) where we have n number of libraries. Suppose there is one library named Library1. In that library there are total of N objects/files so I want to get the count of all the objects in that library.

EG: Library1 contain 5 objects/files.

```
AA1
BB1
CC1
CC2
CC3

```

So What i want here is count of objects starting with the letter C.

Also, after getting the count of the number of objects, I need to search for a specific object in that library.

For that first I need to get the total count and then search. I have the logic with me but don't know how to code this in QTP.

QTP should get the count of the object.

Thanks
Moshin