src/styleutil.js
function countCharFromStr(str, ch) {
    let strArr = [...str];
    let count = 0;
    for (let k in strArr) {
        if (strArr[k] === ch) {
            count++
        }
    }
    return count
}
function countCharFromStr(str, ch) {
    let strArr = [...str];
    let count = 0;
    for (let k in strArr) {
        if (strArr[k] === ch) {
            count++
        }
    }
    return count
}
function countCharFromStr ( str , ch ) { let strArr = [ ... str ] ; let count = 0 ; for ( let k in strArr ) { if ( strArr [ k ] === ch ) { count ++ } } return count }
count specific character in string
@param str target string
@param ch specific character
@returns {number} characters count
count specific character in string