Most sources put it at 29, with some counts landing at 28 or 30 depending on what you include.
That variation isn't sloppiness. Arkham City mixes full set-piece boss fights with shorter armoured encounters, and whether you count the latter changes the total.
If you're tracking them for completion, the in-game progress indicators are more reliable than any number quoted online. They reflect your version, DLC included.