log the number of items in the directory