import calendar


def getNumberOfDaysInMonth(month):
    """
    Return the maximum number of days in a given month, 1 being January, etc.

    For February always 29 will be given, even it is not a leap year.
    """
    # use year 2000 which is a leap year
    return calendar.monthrange(2000, month)[1]