count total number of files