Interrupt not counting every pulse on Arduino Mega 2560

Post your current code.