Little function to count files