updating character counts