added char count example