Changed charCounts in FileProcessor to class field

and made associated changes.