I reckon ~30 would be reasonable with a 20 female, 10 male split.
However, in a 5x2x2 (which I've got one of myself in the garage), I think you are going to need a lot more water turnover than just those two Aqua One 1050 filters as Black Ruby Barbs are riverine fish. My 5x2x2 is a riverine setup, which has a Fluval FX5 (~2300lph); an All Pond Solutions 2000EF (~1200lph) both firing their outputs at the water surface and an AquaMedic Nannoprop 5000 powerhead (~5000lph) midwater... And even that is looks quite pitiful in terms of water speed despite being something ~15x water turnover per hour!
Sounds like a nice species only project and by all accounts you might get some fry that will naturally survive without your assistance.