Properly handle counts of imported files.