You would create a boolean from temp over 100 and then increase count when true, with a filter node to count on change.
e.g.
[{"id":"f92d2086f260e277","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"10","payloadType":"num","x":90,"y":2600,"wires":[["a285eff6489e8bf4"]]},{"id":"cfb2073f6d65572b","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"101","payloadType":"num","x":110,"y":2660,"wires":[["a285eff6489e8bf4"]]},{"id":"a285eff6489e8bf4","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"temp_bool","pt":"msg","to":"$$.payload > 100 ? true : false","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":250,"y":2620,"wires":[["516ed5bdfebfa26a"]]},{"id":"516ed5bdfebfa26a","type":"rbe","z":"d1395164b4eec73e","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":410,"y":2620,"wires":[["4521bcf9b4df41d2"]]},{"id":"4879731ff71c6917","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"temp_count","pt":"flow","to":"$sum([$flowContext(\"temp_count\")]) + 1","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"temp_count","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":2620,"wires":[["d69d9dbd24a1f0cf"]]},{"id":"d69d9dbd24a1f0cf","type":"debug","z":"d1395164b4eec73e","name":"debug 2460","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":670,"y":2660,"wires":[]},{"id":"4521bcf9b4df41d2","type":"switch","z":"d1395164b4eec73e","name":"","property":"temp_bool","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":530,"y":2620,"wires":[["4879731ff71c6917"]]}]