How to change input pin of FreqCounter Arduino Uno/Dumilanove library?
The library makes use of the hardware peripheral Timer 1 which has its input on pin 5 of the Uno.

It can't be changed.  You have no choice in that.

You will have to move the LCD to another pin instead.