character count problem