replaced word count with character count attribute