Exercise: Count digits


Given an array of strings in which every string contains numbers separated by spaces, count how many times each digit appears?


examples/arrays/count_digits_skeleton.js
"use strict";

var numbers = [
    '123 124    56',
    '68 23 '
];

...

Expected output:


0 0
1 2
2 3
3 2
4 1
5 1
6 2
7 0
8 1
9 0