Event 4 should read:
Text: set private variable 'total' to 0
This resets the counter 'total', because the next event does the counting.
Then event 6 should read:
Set text to Text('Total')
ie. display the total found by event 5.
Overall you're doing this:
Reset count to 0
Count the total
Display the total
Your current file omits the 'reset count to 0' stage, so the next time the events are read, it's adding even more to the old total.