Hi there Rachel.
There are lots of guides to how many fish you can have but most of them suffer from a common error. They do not take into account the simple factors of interspecies and intraspecies aggression and most of them also do not take into account the differences that result from the size and body shape of the fish. Another frequently missing bit of information is the water types preferred by each fish.
Betta splendens, the kind of betta you will find in most pet shops, are very adaptable in terms of their water but are often quite docile fish who become victims of any fast swimming or nippy fish in a tank. The mollies are best served by keeping them in small numbers in tanks filled with rather hard water with a pH over 7.5. Many but certainly not all tetras do best in relatively soft water with a neutral to low pH. I find that rasboras do fine in water that is just too hard for most tetras so I would substitute them in your mix if you have water suitable for mollies.
In a small tank like yours I would limit things to maybe 3 or 4 mollies, a half dozen tetras or rasboras and a single male betta. If you end up with the nippier tetras, leave out the betta. You don't to watch a betta just become a victim of other fish. Once you have a stocking similar to the one I have listed, wait a while to make sure your water is stable and you could add in some nice peppered cories, maybe 4 or 5 of them.