On the frequency-magnitude relation logN = a − bM