Frequency of a sound wave is defined as the:
number of compressions or rarefactions produced per unit time.
Frequency is the number of oscillations per unit time. Hence, in other words, it can be defined as the number of compressions or rarefactions produced per unit time.