On modeling the rhythm of natural languages