Count the number of characters in all files of a specific type