# Exercise: Count digits from string

* Given a string of numbers, count how many times each digit appears.

```
let text = "1213 456 78843978523 3224 2421";
```

{% embed include file="src/examples/strings/count-digits/out.out" %}


