i think it also depends on the size and aggresiveness of the other fish in the tank
if the other fish are small and peaceful they wont be as scared and you will be able to get by just fine with only 2
however more is better
from my experience they dont really produce a lot of waste so having 5-7 wont be much of a problem