count-objects: make it operable from a subdirectory.