function [cnts, lets] = countCharsInFiles(fnames)
lets = char(0:255); %! The character set
cnts = zeros(size(lets)); %! Initialize the accumulator.
for k=1:length(fnames)
  fid = fopen(fnames{k},'r'); %! Open for reading.
  while 1
      str = char(fread(fid,10000,'uchar')); 
      %!! Read in a maximum number of characters at a time.
      if isempty(str) %! We've read everything.
          break;
      else %! Accumulate the counts.
          cnts = cnts + countchars(str, lets);
      end
  end
  fclose(fid);
end