The number of fish in a SW aquarium is not real easy to determine. It is affected by the kind of fish, their temperament, the area of the tank they occupy, their habits, etc..
here are a couple examples
in a 40 gallon you can have a dwarf lion, even though it is a bigger fish its habits...