Counting multiple file types works as expected