The Maya calendar and script were created by the ancient Maya civilization of Mesoamerica, in what is now Mexico's Yucatán Peninsula, Guatemala and Belize, with origins already visible in the Maya Preclassic. The calendar ran a 260-day sacred count (tzolk'in) and a 365-day solar year (haab') in parallel; the two interlocked into a 52-year Calendar Round used for dating, ritual and divination. The Maya Classic city-states also widely used the Long Count, numbering days continuously from a mythological creation era (about 3114 BC), and their vigesimal notation independently developed a zero. Maya script was a block script combining logographic and phonetic elements, some eight hundred signs, carved on stelae, lintels and pottery and painted in bark-paper codices, recording royal genealogies, wars and astronomical calendars. Classic-period cities vied in erecting dated stelae, leaving a mass of inscriptions; the calendar and script remained in use in the Maya Postclassic, and the few surviving codices, such as the Dresden Codex, are generally assigned to that period. The inscription tradition broke off with the Spanish conquest in the sixteenth century and the script became unreadable; from the twentieth century scholars deciphered it step by step, confirming it as the only mature writing system of the ancient Americas.