everyone has a different opinions on stocking levels. there are a lot of contributory factors to take into account so you can never get a dead set rule.
personally my view is 1" of fish per us gallon of water, so that's 27" in your tank.
but if your fish are low waste producers you can maybe put a few more in, if you have extra good filtration you can have more bio load, if you have a good mix of top middle and bottom swimmers and your filter can handle the bio load you can have more, if your fish are not very active and don't need lots of swimming room you can have more.
every fish has it's own requirements and they can differ vastly so you can't have one dead set rule that covers everything.
1" per us gallon is a good guideline to start from, then research the needs of the individual fish you want to keep and you can make individula descisions from there.