Refactor ET_Get_Number_Of_Files_In_Directory()

Generate the collate key for the path once, rather than for each
iteration through the loop.