F major has one flat, Bb has two, and so on, through Eb, Ab, Db, Gb and Cb. Much like guitarists with sharp key signatures, flat key signatures are the preference for brass instruments such as ...
So G major, for example has a key signature of one sharp, but this is also the key ... For example, in A harmonic minor there are no sharps or flats other than the raised seventh of G#.