def calc(cell_count, cell_type, TP, TN, FP, FN):
    """
    If cell_count is 0 it means it did not detect an infection, if it is greater than 0,
    this means it found an infection. This section of code determines if the detection was correct
    or not.
    """
    if len(cell_count) == 0 and cell_type == "uninfected": TN +=1
    if len(cell_count) > 0 and cell_type == "infected": TP += 1
    if len(cell_count) > 0 and cell_type == "uninfected": FP += 1
    if len(cell_count) == 0 and cell_type == "infected": FN += 1
    return FN, TP, TN, FP