I recently had a water leak issue which required me to disconnect my ceiling fan in a rush. Ready to reconnect and I'm looking at a black, red, white, green and copper wire coming out of ceiling and a black, blue, green and white wire coming from the fan. 5 from ceiling, 4 from fan. Not sure of what goes to what. Help,

