count the number of the month and the day version2.0