def recall(fn: float, tp: float) -> float:
    """
    Calculate recall.

    :param fn: False negative count.
    :param tp: True positive count.
    :return: Recall.
    """
    return 0 if tp + fn == 0 else fn / (tp + fn)