count the total number of a folder