Counting Characters in a File Using C++