What do the stars on the 1979 Pittsburgh Pirates hats mean?

I saw footage of the 1979 Pittsburgh Pirates today. The players wore hats that were black with stripes. Some hats had a single star while others had many stars. what do the stars represent?
3 answers 3