Like I said, it's definitely possible. A heavily planted tank will keep the parameters more stable so you can push the limits, you just have to realize you are still only working with 2.5 gallons. @shaman.
has successfully kept way more than 5 of the micro rasbora in a 1 gallon - at the same time, he obviously has the experience to do so. Maybe the fish are cramped, maybe not.