comsat:
... so, i should try connect resistor between pin 8 and ground is it and dont i have to feed with any signal?
Um, no. If you want to know something about a signal, like it's frequency, you'll certainly have to connect it. My recommendation is that you connect a resistor to either 5V or to ground, and connect the other end to ICP1, or pin 8 on an Arduino Uno. Then connect your signal between ICP1 and ground, as you normally would.
Here's what I suspect: For some reason - a broken lead, an in correct connection, a switch in the wrong position, or something, there's nothing at all connected to ICP1. That makes ICP1 a "floating input." The pin has a very high impedance to both ground and VCC, and it's not referenced to anything. In that state, it's much more susceptible to electromagnetic interference than it would be if it were connected to something. I suspect that what you're reading is not your input signal, but the frequency of electromagnetic fields caused by the electric power system. Your readings suggest that you live in a region where the power frequency 50 Hz. Tell us if that's correct.
The fact that you can read 490 Hz from a PWM pin supports this theory. I suspect that you didn't use the leads from your frequency generator to connect the PWM pin to ICP1. That means that both the frequency generator and its leads were out of the circuit. I suspect that one of them isn't doing what you think: either the lead is broken, or improperly connected, or the frequency generator is disconnected from the circuit - probably by a switch on the front panel.
By applying a resistor between ICP1 and a good logic level, like VCC or GND, you make the pin a lot more resistant to the effects of electromagnetic fields. Pick a high value resistor - like maybe 100K. Then, connect your signal between ICP1 and ground, and run your program. I suspect that you'll never get a reading, because the logic level on ICP1 will never change. If that's what happens, it supports my theory that the input isn't seeing the signal, or anything else. To see what the frequency measurement library does with an input that never changes - one whose frequency is zero - see your link - FreqMeasure Library, for Measuring Frequencies in the 0.1 to 1000 Hz range, or RPM Tachometer Applications - under the heading, "Zero Handling."
... what is ort?
"ort" is a word that I typed by mistake. I had intended to type "or".