when i m executing the program from qtp help for the below tasks its not working..

01.how can we identify the total no of objects in the object repository and
02.how can we divide objects into 2 arrays based on data entry objects and non data entry objects?

so pleas give me clear script...