A bathroom fan with an LED light will come with 4 wires, one hot wire for the exhaust fan, one hot wire for the light, a neutral wire, and a ground wire. If you have a single-function fan (no light) you will have to replace the wiring with 4-wire NM cable if you want separate switches for the light and the fan.