Gravar-mail: Zipf's Law Leads to Heaps' Law: Analyzing Their Relation in Finite-Size Systems