def num_ints(lst):
    """
    Returns: the number of ints in the list

    Example: num_ints([1,2.0,True]) returns 1

    Parameter lst: the list to count
    Precondition: lst is a list of any mix of types
    """
    result = 0    # Accumulator

    for x in lst:
        if type(x) == int:
            result = result+1

    return result