A clock that counts thousands of years