how many years ago was the 9th century