Title: Frequency counter