count-objects: do not use xsize_t when counting object size