it depends on what key it is.
34 sharps
The key of D has two sharps: F# and C#
It depends on which key signature. D major has 2 sharps. F# major has 6 sharps. Bb major has no sharps.
A major has 3 sharps, A minor has no sharps or flats.
F major contains one flat and no sharps.
The key of C major has the most sharps in its key signature, with seven sharps.
The key of E-flat major has three flats, not sharps. The flats are B-flat, E-flat, and A-flat. In terms of sharps, it is the key that is a minor third above C major, which has no sharps or flats.
Four sharps
There are six sharps in F sharp major.
The key with 5 sharps in its key signature is the key of B major.
The key with five sharps in its key signature is the key of B major.
The Key of Ab does not have any sharps naturally written in it. It has four flats.