added test for charCounter; changed counter in readObject to charCounter;