In regards to the item count. I have a for loop and tested two different types.
First, for each loop through to find “wood” each one I break the result and add the amount to “item count” it returns 1.
Second a for each with break. This finds the item in the inventory, I break the item to get the amount of said item and again it returns 1. Each time the stack could have 5+ wood