A metronome ticks every 0.5 seconds; that is its period, T=0.5 s per tick. Count ticks instead and you get 2 in each second: the frequency is f=0.51=2 Hz, or 120 beats per minute. Period answers "how long for one?" and frequency answers "how many in one unit?", so each is the reciprocal of the other. Halve the period to 0.25 s and the frequency doubles to 4 Hz.
In a sine model the frequency hides inside the parentheses. y=sinx completes one cycle every 2π units, so its frequency is 2π1≈0.159 cycles per unit. y=sin(4x) runs four times as fast: period 42π=2π, frequency 2π4≈0.637. The coefficient B=4 is the angular frequency, measured in radians per unit, and dividing by 2π converts it to cycles. With time in seconds, y=sin(2π⋅440t) is a 440 Hz tone, because B=2πf.
Frequency is not height. 5sin(4x) and sin(4x) have the same frequency; the 5 only makes the swing taller. Nor is it the period: a wave that repeats every 0.2 s has frequency 5 Hz, not 0.2. A quick sense check is that a higher frequency packs more cycles into the same window, while a longer period means fewer.
Think of it like this. Frequency is a lap count, like the number of times a runner crosses the finish line each minute, and the period is how long one lap takes. A faster runner has a higher lap count and a shorter lap time, which is why the two are reciprocals. Unlike a runner, an ideal wave never tires, so its frequency stays fixed.
Core idea. Frequency counts complete oscillations per unit of time (or space) — the reciprocal of the period.