How to count how many items picked up

This is what is what it looks like now but if doesnt work and on input counts as collecting the item no matter what. I need it so the counter only goes up when when the player directly inputs the interaction on the item. For example if I stand at the beginning of my level away from items and press “E” the counter still increases.