def switched_off_count(states_array):
    """Simply count the switched off bulbs in
    the states array.
    input  = ["1", "0", "1"]
    output = 1
    """
    resp = 0
    for i in states_array:
        if i == '0':
            resp += 1

    return resp