The order of sharps #

C Major = no  sharps

G Major = one sharp

D Major = two sharps

A Major = three sharps

E Major = four sharps

B Major = five sharps

F# Major = six sharps

C# Major = seven sharps

The order of flats b

C Major = no  flats

F Major = one flat

Bb Major = two flats

Eb Major = three flats

Ab Major = four flats

Db Major = five flats

Gb Major = six flats

Cb Major = seven flats