There should be three to the transformer, Live, Neutral, Earth, and two to the fan Live, Neutral.
Mine also included a light (it was above the shower), and therefore there were four to the fan, two for the light and two for the fan.
The only difficulty I had was removing the whole lot...