Exercise: count digits

Skeleton:


examples/count-digits-exercise/count-digits-exercise.go
package main

import "fmt"

func main() {
    digits := []int{3, 7, 6, 7, 9, 1, 3, 7}
    fmt.Println(digits)

    fmt.Println("count", count)
}


Expected Output:


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