attachInterrupt for mega 2560 not triggering
//create interrupt for button
attachInterrupt(digitalPinToInterrupt(5),count,CHANGE);



The code does not match the comment.

attachInterrupt(digitalPinToInterrupt(buttonPin),count,CHANGE);