Frequency counts cycles per second; period is the duration of one cycle. They are reciprocals.
50 Hz corresponds to a period of 20 ms.
A period of 2.5 ms corresponds to 400 Hz.