A Derivation of Benford's Law