def gates(parsed):
    """Calculates number of every type of gates, hinges, steel"""
    num_hinges = 0
    num_latches = 0
    num_Lsteel = 0
    for gate in parsed.gates:
        if not gate.isRemoval:
            num_Lsteel += 1
            num_latches += 1
            if gate.isDouble:
                num_hinges += 2
            else:
                num_hinges += 1
    return num_hinges, num_latches, num_Lsteel