The number of times a building sways back and forth following an earthquake during a given amount of time is called its ________.

a) Amplitude
b) Magnitude
c) Resonance
d) Frequency