Can someone tell me how to write a loop to count the number of files in an array??