def getAlerts(fc, dt):
    """
    Count the number of alerts for a given date/time (dt)
    """
    res = 0

    if "alerts" in fc:
        if len(fc["alerts"]) > 0:
            for i in range(0, len(fc["alerts"])):
                alert = fc["alerts"][i]
                if dt >= alert["start"] and dt <= alert["end"]:
                    res = res + 1
    return res