Hi,
The rules that I have heard most is 1 inch of fully grown fish to 1 gallon of water, OR 1 inch of fish to 12 inches of tank. I think that cardinals grow to about 1.5 inches. However I believe that they can be quite sensitive to poor water conditions so make sure your tank is fully matured before you add them in.
Good luck!