Frequency and the Emergence of Linguistic Structure