Added counting characters in the file as an option