Add getNumberOfDaysInMonth() function