For example, 1 tiger barb will attack just about everything else in your tank. 8 tiger barb will fight amongst themselves and leave everyone else alone.
2 serpae tetra (these are rather aggressive tetras) will attack your other fish, 6-10 won't.
So that's how using stocking levels will keep aggression down.
What I mean by using tankmates is to place only fish of similar temperament together or fish that inhabit different zones.
For example, a green spotted puffer is quite aggressive, but it will live just fine with a cory because the cory just stays on the bottom and the GSP inhabits the upper part of the tank.