Support pattern matching in folder names given to the count/export commands