What is difference between frequency and pitch?in nutshell and simple words?
Frequency is mathematically defined as the number of cycles per second. So it is a more strict word mathematically. It is represented numerically by the unit called Hertz.

$f=1/T$, where $T$ represents the one-period length of a waveform. This makes frequency quantifiable.

Pitch on the other hand, is a perceptual characteristic of a sound frequency, so it's a word used to describe how humans perceive a tone as different or not. That's why it is mostly used in the field of music more than mathematics. It is closely associated to the frequency of a sound, but not all frequencies can by described as different pitches (e.g. 440 Hz and 441 Hz would practically sound the same pitch, but a 440 Hz and 466 Hz would sound as two different pitches).

That's how musical scales were invented---to create a scale that classifies the fundamental frequencies and label them as distinct pitches (or notes). A good musical scale represents the foundation of music theory for different styles of music.