Correcting count file handling.