I seem to remember there being a very complicated calculator at Practical Fishkeepings website to help you work out bioload. In a nutshell.
Waste Produced by Fish must = Number of bacteria who can survive on waste
Both of these factors vary hugely though. Waste produced depends upon the species of fish, the number of fish and also upon what and how much you are feeding them. The number of bacteria present depends upon the type of filtration you have in terms of media volume, surface area of your media and flow rate through the filter.
In a perfectly stocked tank there will be a balance between these to. If you overstock, then the waste your fish produce will exceed the amount that can physically be utilised by your bacteria because at some point there will be no more room for any more of them to grow.
On top of this are other contributary factors such as tank temperature, maintainence routine, whether you have live plants etc.
Anyway, there are so many factors that is is next to impossible to determine the exact number / species of fish you can have. Most members here quote 1" of full size fish per US gallon of water. This falls within a safe bioload for the majority of fish species you may own. Obviously there are exceptional fish which produce a lot more waste for their size than others. Goldfish, oscars, piranas are a few and for them, here the 1" per US gallon rule doesn't work.
A bit rambling I know but I hope i've helped somewhat
