Particle Photon: Am I Using it Correctly?

here is another:

if(customKey){
count=count+1;