Count digits, whitespace and other characters