array 를 돌면서 n과 동일한 숫자값을 가진 속성값의 갯수를 반환해주는 함수.
참고 : Count Number of Element Occurrences in JavaScript Array [for...of] in mdn