What is the maximum number of right angles in an irregular polygon?

There is no maximum number for a an irregular concave polygon. If it must be convex, then there is a maximum of 3.