and will it die if I only get 2? Thanks!
Basically. It's not just as simple as getting 6 of them, it depends on many factors.
If you only get two of them, depending on the species they will become aggressive and nip all your other fish, become inactive and boring - sometimes sulking in a corner...slowly wasting away or become very skittish.
Happy fish are generally active, not scared of movement (like when you walk up to the tank and open the lid to feed) and 100% healthy.
The thing is, the fish people recommend you keep in groups are usually the ones that live in massive schools in the wild - numbering in the hundreds or thousands. It's a safety in numbers thing.
When you keep too few of them, they feel insecure and this can have the aforementioned effects on them...it's basically like depression.
6 is just a good number really, 5 wont make too much of a difference, but it depends on the tank. If you only had 6 neon tetras in a 100 gallon tank with large fish or no other fish at all, they will suffer those effects.
But in a - say 20gallon tank - that has been set up for years with similarly sized fish of a peaceful temperament, the odd tetra
may do OK on it's own. This is usually the case when you start of with a large shoal and over the years they pass away leaving you with 1 or 2. By this time the fish will (or should) be 100% comfortable with their surroundings, and the other fish around them can simulate the safety in numbers thing.