Hello,
It really is best not to mix species. If you are going to use a 40 gallon breeder tank I agree with the previous poster, 8 would be the max. Of course, make sure there is only 1 male & the rest females. The males would get too rambunctious with competition.
Tracie