0
The key of Gmajor has 1 sharp which is F sharp.
The G-major scale has only one sharp (which is F#)
The key of G Major has one sharp: F#
G major, D major, E major, B major, F sharp major, F sharp minor, A sharp major, etc.
F sharp.