add nfiles count to json