1602 LCD and reading out RPM fan

Would you be able to help me with the code reading out the rpm with PulseIn() on the analog in pins?
I can't figure it out