I want to get the items' total count of library. But some library can count the full list, some library just only count one record. I have no idea what is the problem. Here is the coding.

WebReference.getItemsRequest req = new WebReference.getItemsRequest();
WebReference.getItemsResponse resp;
req.container = ((LibItem)listLibraries.SelectedItem).ID;
libname = ((LibItem)listLibraries.SelectedItem).Name;
domain = ((LibItem)listLibraries.SelectedItem).Domain;
postOffice = ((LibItem)listLibraries.SelectedItem).PostOffice;
resp = ws.getItemsRequest(req);
if (0 == resp.status.code)
{
if (null != resp.items)
{
listBoxFiles.Items.Clear();
foreach (WebReference.Document itemobj in resp.items)
{
FileItem tmpinfo = new FileItem();
tmpinfo.Name = itemobj.name;
tmpinfo.ID = itemobj.id;
tmpinfo.Version = itemobj.version;
tmpinfo.Lib_DisplayName = itemobj.library.displayName;
tmpinfo.Lib_email = itemobj.library.email;
tmpinfo.Subject = itemobj.subject;
tmpinfo.Author_DisplayName = itemobj.author.displayName;
tmpinfo.Author_email = itemobj.author.email;
tmpinfo.Created = itemobj.created;
tmpinfo.currentVersion = itemobj.currentVersion;
tmpinfo.documentNumber = itemobj.documentNumber;
tmpinfo.documentTypeName = itemobj.documentTypeName;
tmpinfo.officialVersion = itemobj.officialVersion;
tmpinfo.RetrievedDate = itemobj.modified;
listBoxFiles.Items.Add(tmpinfo);
count++;
}
LogMessage("GetLibItems success" + " count=" + count);

}

Anyone would be help me to solve this problem?

Thank you