Given list of strings, return total count of digits, letters, and spaces across all strings.
Implement this function:
def count_char_types(strings: list) -> dict:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: strings.
Input
['abc 123', 'hello world']
Output
{'digits': 3, 'letters': 13, 'spaces': 2}