radiation detector won't count

When you say they are created, do you mean created and reset to zero? Is there another way to create the variables?

Created on each pass through loop(). If there is an initialization statement, then the variable is initialized to the specified value. If not, it is not initialized, and you get whatever crap was already there. You can use global variables or declare the local variables static.