Improove speed on freq counter.