(event) Pinned object "On Collision With" Stones
(condition) For Each Stone > (action) Add 1 to Isolation
To check if it's working correctly, create a text object and set text to (""&Isolation).
This will display the Isolation variable so you can ensure it is calculating the correct number of stones.