Where did Tolkien get the idea of past numbered ages of the world from?
Just watching Graham Hancock's Ancient Apocalypse series (For the archaeologists and historians: I know, I know, but I was curious) and the Mayan calendar with several numbered ages lasting thousands or tens of thousands of years in the past struck me as being similar to Tolkien's numbered ages. I'm pretty sure he didn't get this idea from the Mayans, but where did he get it from?
I'm not well versed in historiography, so perhaps this is obvious but I'm not aware of this existing in a European context. I'm assuming it's based on something and not an idea that he invented from scratch.