Given an array and an integer, return the number of times the integer appears in the array.
// input: const a = [1, 2, 3, 4, 5, 3, 3], n = 3 // output: 3
/* output */