const countSubString = (str, subStr) => str.split(subStr).length - 1;