added character count to output