python count_selections files in a separate folder