const line1 = readline(); const line2 = readline(); function func(str, char) { let num = 0; const arr = str.split(''); arr.forEach((item) => { if (item.toLowerCase() === char.toLowerCase()) num++; }); return num; } print(func(line1, line2));