Integer variable not setting properly

is this how I do it? This is my code but it still does not work, in fact, It got even worse. Now when I touch it it does not get destroyed, and it just keeps on adding 1 to the score every time I come close. How do I fix it???