You'll need to count the number of entries in the files.