Four statements are made about logic gates. (1) A NAND gate is a universal gate. (2) The output of a NOR gate is 1 when both inputs are 1. (3) The output of an XOR gate is 0 when both inputs are equal. (4) A NOR gate with its two inputs joined acts as a NOT gate. How many of these statements are correct?