pulse counteri

 if ( pulse == HIGH );

Oops.