fix counting when ldapPagingSize is 0
make updateCount work properly with new xp'd mode as well as without