It depends almost entirely on the personality of the individual fish you get. Anabantoids have some of the most unique personalities among fish. Some bettas are nice, some are terrors. Some paradise fish are good in communities, some kill everything.
Dwarf gouramis are not aggressive by any means, but they are territorial.
If you would like to err on the side of caution, just get one. He will be completely happy alone. If you'd like to try more, get 3, NOT 2. 2 will result in one dominant, and one submissive and would create a bad situation. Add the three on a day when you will be home all day to supervise. If things get out of hand, take two back to the store (make sure ahead of time that the store will allow this).
I had three dwarves in a 10g. They were fine together. I have had 3 that did not get along together whatsoever. I had two that would fight in a 55g. It is really dependant on the fish, like I said.
If you do get more than one, make certain that there are many, many hiding places in the tank. They will each stake out a territory and out of sight is out of mind
IME - dwarf gouramis really aren't much like full size gouramis, especially the male blues.