Two things.
1. Your script do not return Deleted Objects or Recycled Objects
2. Are you sure you're binding to the same DC for all your LDAP calls?
Enfo Zipper
Christoffer Andersson – Principal Advisor
http://blogs.chrisse.se - Directory Services Blog