Amerindians inhabited Peruvian territory for several millennia before the Spanish Conquest of the 16th century ; according to historian Noble David Cook their population decreased from nearly 5–9 million in the 1520s to around 600,000 in 1620 mainly because of infectious diseases .