keep getting expected ')' before numeric constant

Hi arduino gurus! I'm hoping that I can get some help from you. I am trying to run this code and keep getting the "expected ')' before numeric constant" error. From a similar post I've come to learn that this error could be thrown because of improper syntax but I haven't spotted any in this code. Please see the attached image.

ut I haven't spotted any in this code.

You need to get your eyes checked, then. The highlighted line and the 6 above it are missing operators between the analogRead() call and the value.

It is NOT necessary to read the pin 9 times to determine what value ICR1 should have. Read it ONCE, and store the value in a variable.

Do NOT post pictures of code, damn it. It's text. Post it AS TEXT.

And that needs to be an if .. else if .. else if .. else structure I think.