On Energy and Frequency of Earthquakes