Going back to when I used to keep tropicals..... a rough rule of thumb as to how many fish you can keep......
1" of fish per 12" square of water surface area.
The fish capacity of a tank is dictated by the amount of oxygen that the surface of the water can absorb - as above, about 1" of fish per 12" square of water surface area.
So, your tank, with 31" x 12" of water surface area, can hold about 31" of fish.
So that's about 20 x 1½" fish - or 10 x 3" fish - or 6 x 5" fish - etc....
Personally I wouldn't keep anything that'll grow to much more than 6" or at a push, 8", in that tank (Clown loaches can grow longer than a foot)
And if you go for a larger number of small fish, it's best to add them to the tank in 5s and 6s at a time (as opposed to 20 at the same time)