Counts all the Ascii characters for a given filename