Evolution and the Torah

Kvod harav, according to the Torah how old is earth, and is there an opinion that we only count from the creation of Adam, but before that the earth existed? Was everything created at once, is everything the same age? Also are there any books on this(english)

There are rishonim that hold the world is existing already tens of thousands of years