Yeah, there's no way you can go by the 1 inch of fish per 5 gallons of water. It just does not work in saltwater. I know that is supposed to be the rule of thumb, but it just isn't enough. Like stated, you need to consider the length of the fish, thickness, the amount of room it needs to swim, the amount of space it needs in a tank, waste production, etc.
Bottom line to it is to research the species you are looking at before you buy it.