알고리즘 & SQLJavaScript 알고리즘 팁String 내에서 갯수 세기String 내에서 갯수 세기// a 갯수는 5개let a = 'abaaabbbabbb';const count = a.split('a').length - 1; 실행결과 : 5