There can be no more than four bends in the chimney, and bends can be of a maximum of 45 degrees.
In the case of four bends, there must be a soot door between the second and third bends (as per building regulations).
For more information on bends see our full article here.