Make Item spawner stop after reaching a limit

so how you have the spawning setup?
cant you just count every time it spawns to increment a variable?
then listen for the pickup event to decrement the same variable?

infact you could subscribe to the pickup event of the wood as you spawn it