XOR Gate -
https://www.dropbox.com/s/5uf4brini1l5h ... e.sub?dl=0
Green OR is input.
Green AND compares the OR Gates.
Cyan NOT checks if there is no signal from Green OR.
Cyan AND checks if there is no signal from both Green ORs.
Red AND checks if both Cyan AND and Green AND are on.
Orange OR (Output) receives Red AND.
Cyan AND output is 0, False output is 1.
Green AND output is 0, False output is 1.
Since there is no way to count how many inputs are connected simultaneously, you will have to have a green OR gate for every four extra inputs at least. Depending on what you wire, you may have a lot of spaghetti mesh wires.