Using the 2-gallon space rule, you can keep 3 to 4 of them in a 5-gallon tank. Although it is not a hard and fast rule, you still have to provide them adequate space.