All-hardware frequency meter and LCR