The idea of counting each day represents spiritual preparation and anticipation for the giving of the Torah which was given by God on Mount Sinai at the beginning of the month of Sivan, around the same time as the holiday of Shavuot. The Sefer HaChinuch (published anonymously in 13th-century Spain) states that the Israelites were only freed from Egypt at Passover in order to receive the Torah at Sinai, an event which is now celebrated on Shavuot, and to fulfill its laws. Thus the Counting of the Omer demonstrates how much a Jew desires to accept the Torah in their own life.