MSP430 Based Simple Frequency Counter