With a PoD between the middle of 18th century (or even earlier, if it's possible) and first half of the 19th century, how many countries would be formed from the OTL Brazilian territory?
Something like this.
Bahia wasn't part of the Confederation and Maranhão was separated from Grão-Pará (that would probably remain Portuguese for a while) in the mid 18th century.I imagine Pernambuco and Bahia would be a single state similar to the OTL Confederation of the Equator, and Maranhao and Grao-Para would both be part of Portugal.