now counts type of characters