Digital frequency meter