const fs = require('fs');
const content = fs.readFileSync('./dist/assets/index-D9sWWWv_.js', 'utf8');

const target = `const prof=(Je.find(P=>P.name===N.profileName&&P.agentId===N.agentId)||Je.find(P=>P.name===N.profileName&&!P.agentId)||(r?ui:[]).find(P=>P.name===N.profileName));p[D]+=prof?prof.price:N.price||0`;

let count = 0;
let idx = 0;
while (true) {
    idx = content.indexOf(target, idx);
    if (idx === -1) break;
    count++;
    idx += target.length;
}
console.log("Count of occurrences:", count);
