const map = new Map<RType, number>();
const analyzer = await new FlowrAnalyzerBuilder()
.configure('solver.instrument.dataflowExtractors', instrumentDataflowCount(map, () => map.clear()))
.build();
analyzer.addRequest(requestFromInput(code));
await analyzer.dataflow();
Now, you can inspect the counts in the map objects, these will be reset for each new analysis request using the () => map.clear() function.
This takes the out parameter
countMapand fills it with the count of how many times each RType was processed. The accompanyingresetfunction can be used to reset the map to an empty state.