Easy feedback counter in go-nogo

Hii there
I’m trying to build simple go-nogo task, where the participants have to hit space if they see a bat and do nothing if a cat apeares.
I do a training round and after that I want to give feedback.
if key_resp.corr:
r += 1
else:
f += 1

I have this counter, where it counts the right and wrong answers. They take it out of the conditionfile with corr ans.
The Bat/cat is shown fpr 0.5 seconds and the key respond is open for another 0.5 second. So 1 second in total should be enough to hit space.
Although if i do everything right the feedback still shows 1 wrong and 5 right. So the counter doesn’t work right.

Has anyone an idea why this could be?
Thank you