How are the number of days in a year related to astronomy?