For Gerbils I would say two,

Hamsters one,

Dwarf Hamsters two to three??


and I have no idea about rats


---This is for a 1 gallon tank---