If the switch is a single pull switch there will only be 2 black wires and a ground that need to be connected to the device.
If it is a 3-way switch there will be a ground wire, a red wire and 2 black wires (one of which is the common)that need to be attached to the device.
a 4-way switch will require a ground wire, 2 black wires and 2 red wires that all need to be hooked to the device.